Skip to content

Instantly share code, notes, and snippets.

@jeevandongre
Created September 29, 2015 08:44
Show Gist options
  • Select an option

  • Save jeevandongre/1ee95b373dcce0422e19 to your computer and use it in GitHub Desktop.

Select an option

Save jeevandongre/1ee95b373dcce0422e19 to your computer and use it in GitHub Desktop.

Revisions

  1. jeevan dongre created this gist Sep 29, 2015.
    6 changes: 6 additions & 0 deletions import_csv.sql
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    LOAD DATA LOCAL INFILE 'file_name.csv'
    INTO TABLE table_name
    FIELDS TERMINATED BY ','
    ENCLOSED BY '"'
    LINES TERMINATED BY '\n'
    IGNORE 1 ROWS;