2010-05-12 134 views
0

我正試圖將製表符分隔的文件導入到mysql中。這裏是我如何做到這一點:mysqlimport:語法錯誤

mysqlimport c:\file.txt 

什麼語法錯?

+0

你得到什麼錯誤訊息? 'mysqlimport'從哪裏來?這不是我認爲的默認mysql二進制文件的一部分。 – 2010-05-12 18:06:18

+0

更正:實際上是。那麼你會得到什麼錯誤信息? – 2010-05-12 18:06:47

+0

錯誤1064,你的語法錯誤(順便說一句,我正在使用Windows) – 2010-05-12 18:09:17

回答

0
load data local infile 'c:/calibration.txt' into table employees.calibration fields terminated by '\t' enclosed by '"' lines terminated by '\n';