我试图在MySQL中使用LOAD DATA INFILE,如下所示:
LOAD DATA INFILE ‘mfsw_test.csv’
REPLACE INTO TABLE mfsw_curr
FIELDS TERMINATED BY ‘,’
LINES TERMINATED BY ‘\n’
IGNORE 1 LINES;
我收到错误:
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 '‘mfsw_test.txt’
REPLACE INTO TABLE mfsw_curr FIELDS TERMINATED BY ‘,’ LI' at line 1
我做错了什么?
答案 0 :(得分:0)
检查你的报价。单引号应该是基本'
而不是单词智能引用‘’