Created
July 15, 2013 14:00
-
-
Save IanHopkinson/6000143 to your computer and use it in GitHub Desktop.
SQL to upload the smaller tables of the MOT test dataset
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
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