Created
June 17, 2019 15:59
-
-
Save ongzexuan/07415be703d5576f9433ddb0730f7766 to your computer and use it in GitHub Desktop.
Example of LOAD DATA LOCAL INFILE SQL command
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
LOAD DATA LOCAL INFILE '<FILENAME>' | |
REPLACE | |
INTO TABLE <TABLENAME> | |
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