Is it .CSV or .CVS. If it is .CSV then you should use comma as the delimeter. If the fields are delimeted using comma then it would look something like the following
1,0111A
1,0111B
1,0111C
2,0211A
2,0211B
2,0211C
3,0789D
If you want to import the data from a .CSV file issue the following command in the SQL Query manager area.
Code:
LOAD DATA INFILE 'C:\\test.csv' REPLACE INTO TABLE `test`
FIELDS TERMINATED BY ','
ENCLOSED BY '"'
ESCAPED BY '\\'
LINES TERMINATED BY '\r\n'
Here one of the most important point is FIELDS TERMINATED BY ',' if you try to import data which is not delimeted using comma then this will not work.
Bookmarks