I can't seem to get this piece of code to work. I am trying to load some csv into my MySQL database. The time stamp is in string format, I am trying to save it as a time stamp.
LOAD DATA LOCAL INFILE 'C:/tmp/test1.csv'
INTO TABLE eurusdtrue16
FIELDS TERMINATED BY ','
ENCLOSED BY ''
LINES TERMINATED BY '\n'
IGNORE 1 LINES
(str_to_date('20151110 12:07:43.786','%Y%m%d %H:%i:%s.%f'),
1.001, 1.002);
It shows error
Syntax error: missing closing parenthesis
str_to_datecall in this context?