Created
January 10, 2014 20:37
-
-
Save benfavre/8362099 to your computer and use it in GitHub Desktop.
Mysql Import csv files
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 INFILE 'file.csv' INTO TABLE commandes | |
FIELDS TERMINATED BY ';' ENCLOSED BY '' | |
LINES TERMINATED BY '\r\n' | |
IGNORE 1 LINES | |
(column1, column2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
\n for raw text data (stal)