-
Recent Posts
-
February 2012 M T W T F S S « Apr 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 Archives
Tag Archives: LOAD DATA example
How To Export and Import data from csv into Mysql
How To Export and Import of csv data out of and into MySQL This method works for the MySQL 5 and not sure about other versions. Exporting the MySQL data into a comma delimited (.csv) file SELECT * INTO OUTFILE ‘ /data.csv’ FIELDS TERMINATED BY ‘,’ OPTIONALLY ENCLOSED BY ‘”‘ LINES TERMINATED BY ‘\n’ FROM table1; This will dump your table into a file with each row from the database being on it’s own line, columns separated by commas, and … More ->