We Recommend

SQL Cookbook SQL Cookbook
Written in O'Reilly's popular Problem/Solution/Discussion style, the SQL Cookbook is sure to please. Anthony's credo is: "When it comes down to it, we all go to work, we all have bills to pay, and we all want to go home at a reasonable time and enjoy what's still available of our days." The SQL Cookbook moves quickly from problem to solution, saving you time each step of the way.


Posted By

brentroady on 08/12/06


Tagged

mysql sql csv


Versions (?)


Who likes this?

11 people have marked this snippet as a favorite

meth
millisami
yuconner
mdavie
Phoenix
halbtuerke
cynic68
vali29
pagetoscreen
mh5777
alexxx


Load CSV into MySQL


Published in: SQL 


URL: http://forums.digitalpoint.com/showthread.php?t=108159

  1. LOAD DATA INFILE 'data.txt' INTO TABLE tbl_name
  2. FIELDS TERMINATED BY ','
  3. LINES TERMINATED BY '\n';

Report this snippet 

You need to login to post a comment.