Skip to content

Instantly share code, notes, and snippets.

@jeevandongre
Created September 29, 2015 08:44
Show Gist options
  • Save jeevandongre/1ee95b373dcce0422e19 to your computer and use it in GitHub Desktop.
Save jeevandongre/1ee95b373dcce0422e19 to your computer and use it in GitHub Desktop.
Importing Data to mysql database from csv using stored procedures
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