導入mysql的sql語句:
load data local infile 'D:/test/database_excel/mat2.txt' into table index_table LINES TERMINATED BY '/r/n' IGNORE 1 LINES(id, en,cn,jp,it, es, fr, de)
如果出現多語言亂碼問題
關鍵一步就是用excel導出的unicode 文本要轉爲utf-8格式的.藉助editplus
而且數據庫的編碼要統一用utf-8
alter database test CHARACTER SET utf8