我按照你的数据试了一遍没问题,其中改了一点点东西,用户名没关系,ctl更改为:
load data
infile 'input.csv'
append into table test
trailing nullcols
(first char terminated by "," optionally enclosed by '"',
second char terminated by "," optionally enclosed by '"'
)否则会把"2"中的"号带入表中表的结构如下:
CREATE TABLE test
 (
  first                      CHAR(10),
  second                     CHAR(10)
 )想不出你那边什么原因出错,会不会是数据文件结尾有些不可见字符?