Skip to content

Instantly share code, notes, and snippets.

@jakeasmith
Created January 19, 2012 08:18
Show Gist options
  • Save jakeasmith/1638712 to your computer and use it in GitHub Desktop.
Save jakeasmith/1638712 to your computer and use it in GitHub Desktop.
CSV to MySQL.
LOAD DATA LOCAL INFILE ‘/your_file.csv’
INTO TABLE your_table
FIELDS TERMINATED BY ‘,’
LINES TERMINATED BY ‘\n’
(field1, filed2, field3);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment