我有一个csv文件,我用一堆信息制作,但我不能让它正确导入...
我已经在info.csv中获得了这些值:id firstname lastname address state gpa credits
在视频之后,我使用了这个:
LOAD DATA LOCAL INFILE '/IT101/info.csv' INTO TABLE 'student' FIELDS TERMINATED BY ','
ENCLOSED BY '"' ESCAPED BY '\' LINES TERMINATED BY '\n';

我回来了:
PAGER set to stdout

并且值不存在。我做错了什么?
编辑:顺便说一下,我在表格中已经有两行使用插入,只是再做30次似乎是浪费时间答案 0 :(得分:1)
你可以试试......
LOAD DATA INFILE '/IT101/info.csv'
INTO TABLE students
FIELDS TERMINATED BY ','
ENCLOSED BY '"'
LINES TERMINATED BY '\n'
IGNORE 1 ROWS;