Skip to content

Instantly share code, notes, and snippets.

@ChoWonmin
Last active October 24, 2019 01:38
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 ChoWonmin/31552da3659a2d73dcc383ff732e0cac to your computer and use it in GitHub Desktop.
Save ChoWonmin/31552da3659a2d73dcc383ff732e0cac to your computer and use it in GitHub Desktop.
use databasename;
DELETE FROM tablename WHERE partition = 'condition';
LOAD DATA LOCAL INFILE 'file.tsv' INTO TABLE tablename FIELDS TERMINATED BY '\t';
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