mysql导入txt文件出错 100
执行语句是这段LOADDATALOCALINFILE'D:/nt.txt'INTOTABLEdede_archivesLINESTERMINATEDBY'\r\n'(ti...
执行语句是这段LOAD DATA LOCAL INFILE 'D:/nt.txt' INTO TABLE dede_archives LINES TERMINATED BY '\r\n' (title);
这里是出错消息: 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 'LOAD DATA LOCAL INFILE 'D:/nt.txt' INTO TABLE dede_archives LINES TERMINATED BY ' at line 1 展开
这里是出错消息: 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 'LOAD DATA LOCAL INFILE 'D:/nt.txt' INTO TABLE dede_archives LINES TERMINATED BY ' at line 1 展开
展开全部
is your infile can be accessed through 'd:/nt.txt'?
try to add database name in front of your table.
try to add database name in front of your table.
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
路径需不需要加两个斜杠来转义啊? 额 好久在没windows下用mysql了
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询