Skip to content

Instantly share code, notes, and snippets.

@benfavre
Created January 10, 2014 20:37
Show Gist options
  • Save benfavre/8362099 to your computer and use it in GitHub Desktop.
Save benfavre/8362099 to your computer and use it in GitHub Desktop.
Mysql Import csv files
LOAD DATA INFILE 'file.csv' INTO TABLE commandes
FIELDS TERMINATED BY ';' ENCLOSED BY ''
LINES TERMINATED BY '\r\n'
IGNORE 1 LINES
(column1, column2);
@benfavre
Copy link
Author

\n for raw text data (stal)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment