Created
May 8, 2012 06:12
-
-
Save davidromani/2632961 to your computer and use it in GitHub Desktop.
Import CSV into MySQL table
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 '/path/to/file.csv' INTO TABLE <database.table_name> | |
FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '\n' | |
(field1, field2, fieldN); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment