sql语句为:
LOAD DATA INFILE 'D:/StockCategory.txt' INTO TABLE stock_category character set utf8 FIELDS TERMINATED BY ',' lines terminated by '\n'
错误信息为:
[Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'character set utf8 FIELDS TERMINATED BY ',' lines terminated by '\n'' at line 1数据库及数据表编码均为“utf8”。
INSERT没有问题,LOAD DATA IN FILE报错。
谢谢大家。