/ Published in: SQL

Imports data from CSV (excel-compatible format) into MySQL. Also check the mysqlimport utility and the complementary SELECT ... INTO OUTFILE.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
LOAD DATA INFILE 'datafile.csv' INTO TABLE tbl_name FIELDS TERMINATED BY ',' ENCLOSED BY '"' ESCAPED BY '\\' LINES TERMINATED BY ' ' IGNORE 1 LINES;
URL: http://dev.mysql.com/doc/refman/5.0/en/load-data.html
Comments
