Created
September 29, 2015 08:44
-
-
Save jeevandongre/1ee95b373dcce0422e19 to your computer and use it in GitHub Desktop.
Importing Data to mysql database from csv using stored procedures
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 'file_name.csv' | |
INTO TABLE table_name | |
FIELDS TERMINATED BY ',' | |
ENCLOSED BY '"' | |
LINES TERMINATED BY '\n' | |
IGNORE 1 ROWS; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment