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

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -