Skip to content

Instantly share code, notes, and snippets.

@tristanoneil
Created January 18, 2012 12:32
Show Gist options
  • Save tristanoneil/1632794 to your computer and use it in GitHub Desktop.
Save tristanoneil/1632794 to your computer and use it in GitHub Desktop.
Importing unique data from a CSV into MySQL
LOAD DATA INFILE '/path/to/file' IGNORE INTO TABLE data.timeseries FIELDS TERMINATED BY ',' ENCLOSED BY '"' IGNORE 1 LINES;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment