Last active
October 24, 2019 01:38
-
-
Save ChoWonmin/31552da3659a2d73dcc383ff732e0cac to your computer and use it in GitHub Desktop.
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 databasename; | |
DELETE FROM tablename WHERE partition = 'condition'; | |
LOAD DATA LOCAL INFILE 'file.tsv' INTO TABLE tablename FIELDS TERMINATED BY '\t'; |
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
mysql -u username -p password -h hostname --port=3306 | |
mysql -u username -p password -h hostname --port=3306 < load_tsv.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment