I try to load data into a certain column into a table with the following SQL-statement:
LOAD DATA INFILE 'filelist.txt' INTO TABLE filelist (filepath) LINES TERMINATED BY '#';
The structure of the data in each line is like this:
file:://///...path...txt#
and I get the following error message:
You have an error in your SQL syntax near 'LINES TERMINATED BY '#'
I really don’t know what is wrong. Anyone any ideas?
Try removing the ‘LINES TERMINATED BY ‘#’ from your sql-statement. Run this “LOAD DATA INFILE ‘filelist.txt’ INTO TABLE filelist (filepath)” only … from comment