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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.