Created
January 19, 2012 08:18
-
-
Save jakeasmith/1638712 to your computer and use it in GitHub Desktop.
CSV to MySQL.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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