mysql - Insert into SQL from CSV -
i have following csv file:
africa,zimbabwe,7,telecel zimbabwe,1,0,1,0,0,1 africa,zambia,7,celtel zambia plc,1,0,1,0,0,1
i using following query reason it's giving error:
load data local infile 'pathtofile' table databasename.tablename fields terminated ',' enclosed '"' lines terminated '\n';
it giving data truncated warning , not importing anything
first of need ensure receiving data fields in correct order , of correct type , size.
then specify enclosed '"'
, example data not enclosed...
Comments
Post a Comment