Last active
October 24, 2019 01:38
-
-
Save ChoWonmin/31552da3659a2d73dcc383ff732e0cac to your computer and use it in GitHub Desktop.
Revisions
-
ChoWonmin revised this gist
Oct 24, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ use databasename; DELETE FROM tablename WHERE partition = 'condition'; LOAD DATA LOCAL INFILE 'file.tsv' INTO TABLE tablename FIELDS TERMINATED BY '\t'; -
ChoWonmin revised this gist
Oct 24, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ use databasename; DELETE FROM tablename WHERE partition = 'condition'; LOAD DATA INLOCAL FILE 'file.tsv' INTO TABLE tablename FIELDS TERMINATED BY '\t'; -
ChoWonmin revised this gist
Oct 24, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ use databasename; DELETE FROM tablename WHERE partition = 'condition'; LOAD DATA LOCAL FILE 'file.tsv' INTO TABLE tablename FIELDS TERMINATED BY '\t'; -
ChoWonmin revised this gist
Oct 24, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ use databasename; DELETE FROM tablename WHERE partition = 'condition'; LOAD DATE LOCAL FILE 'file.tsv' INTO TABLE tablename FIELDS TERMINATED BY '\t'; -
ChoWonmin created this gist
Oct 24, 2019 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ use databasename; DELECT FROM tablename WHERE partition = 'condition'; LOAD DATE LOCAL FILE 'file.tsv' INTO TABLE tablename FIELDS TERMINATED BY '\t'; This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ mysql -u username -p password -h hostname --port=3306 mysql -u username -p password -h hostname --port=3306 < load_tsv.sql