I know this is a known issue with older versions of MySQL Workbench but I'm certain I have the latest version so that is definitely not the cause. The code is the following, I will also explain why I am using this approach.
WITH temp as
(
LOAD DATE INFILE 'File Location.csv'
IGNORE
INTO TABLE temp
FIELDS TERMINATED BY '^~'
LINES TERMINATED BY '
'
IGNORE 1 ROWS
(RUN_DATE, PROC-DT, STL_DT, TRD_DT, CHG_DT, SENT_ADP_DT, ACKN_ADP_DT, ORIG_PROC_DT)
)
select * from temp;
So, in a previous query, I loaded the entirety of the INFILE into a table that I need, but these fields in specific (all date fields) were not being populated correctly. I'm trying to create a temp table so that I may test some preprocessing logic on these fields (using the SET argument for LOAD DATA) and then hopefully inject these columns correctly into my permanent table with the appropriate logic. However, I have no idea why I'm getting this confounded error. Thanks in advance for the help.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…