Created
May 6, 2014 22:54
-
-
Save jgambill/49b03b5a088d1e1ce2b5 to your computer and use it in GitHub Desktop.
load csv into mysql #mysql #sql
This file contains 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 'C:/path/to/file.csv' | |
INTO TABLE `tablename` | |
FIELDS TERMINATED BY ',' ENCLOSED BY '"' | |
LINES TERMINATED BY '\r\n' | |
IGNORE 1 LINES | |
(field1,field2,field3) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment