Skip to content

Instantly share code, notes, and snippets.

@IanHopkinson
Created July 15, 2013 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IanHopkinson/6000143 to your computer and use it in GitHub Desktop.
Save IanHopkinson/6000143 to your computer and use it in GitHub Desktop.
SQL to upload the smaller tables of the MOT test dataset
USE MOT;
LOAD DATA LOCAL INFILE '[yourpath \\ as separator in windows]failure_location.txt'
INTO TABLE failure_location
FIELDS TERMINATED BY '|'
LINES TERMINATED BY '\n'
;
LOAD DATA LOCAL INFILE '[yourpath \\ as separator in windows]item_detail.txt'
INTO TABLE testitem_detail
FIELDS TERMINATED BY '|'
LINES TERMINATED BY '\n'
;
LOAD DATA LOCAL INFILE '[yourpath \\ as separator in windows]item_group.txt'
INTO TABLE testitem_group
FIELDS TERMINATED BY '|'
LINES TERMINATED BY '\n'
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment