I need to import a CSV file into a table named “coplaints”. The file is separated by tabulation. I already tried this:
load data local infile 'C:/Users/rocket/Documents/filipe ferminiano/processos/segmentacao/912013/coplaint.csv'
into table crm_base.coplaints fields terminated by ' ' enclosed by '"';
But it doesn’t work.
You need to use
\tas your field terminator for a tab separated file.http://dev.mysql.com/doc/refman/5.1/en/load-data.html