0
我有一個需要在MySQL中上傳的CSV文件。該表說明是:加載數據infile錯誤:列數據太短
website varchar(500)
major_cat varchar(500)
sub_cat varchar(500)
ref varchar(500)
commision varchar(10)
additional_fee varchar(5)
shipping varchar(5)
下面是一個CSV數據例如:
Amazon,All,All,AmazonAllAll,5%,10,12.36%
Angoor,All,All,AngoorAllAll,5%,0,12.36%
Big Basket,All,All,Big BasketAllAll,5%,0,12.36%
Car Khana,All,All,Car KhanaAllAll,5%,0,12.36%
我嘗試使用下面load data infile
查詢:
load data infile 'AAAAA Products.csv'
into table products
fields terminated by ','
lines terminated by '\n';
我得到下面的錯誤
錯誤1406(22001):數據太長c olumn'shipping'at 1 1
請幫我這個。我被困死了。