- Save as csv
- run sql 'mysql_import_csv_from_excel.sql'
Last active
August 29, 2015 14:11
-
-
Save mrgcohen/4bb5bef68f943e2e81dc to your computer and use it in GitHub Desktop.
Mysql Import from excel on mac
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 '~/filename.csv' | |
INTO TABLE table_name | |
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' | |
LINES TERMINATED BY '\r' | |
IGNORE 1 lines | |
(column1,column2,column3...); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment