我针对我的 MySQL 数据库运行以下 SQL 查询:
load data local infile '/tmp/ad_packs.csv'
into table ad_packs
fields terminated by ','
enclosed by '"'
lines terminated by '\n'
(company_name,pack_size,remaining,ad_pack_purchase_officer,advertising_contact_officer,updated_ad_pack,email,phone,website,note,organisation_id,categories,modified)
这似乎只插入一行,我已经检查了 csv,它有标题,所以它只插入第一行,即标题。
有什么原因吗?