我想将csv文件导入到mysql中。
load data local infile 'uniq.csv' into table tblUniq
fields terminated by ','
enclosed by '"'
lines terminated by '\n'
(uniqName, uniqCity, uniqComments)
http://www.tech-recipes.com/rx/2345/import_csv_file_direct_into_mysql/
但是csv中的列名称与数据库表中的列名称不同,我该怎么办?我想以编程方式来做。
潇潇雨雨
慕哥9229398
偶然的你