-
-
Save lgaa/f73f8982ccd5f87bc8e40c09a53cc64b to your computer and use it in GitHub Desktop.
Revisions
-
kbsali revised this gist
Nov 22, 2013 . 2 changed files with 4 additions and 4 deletions.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 @@ LOCK TABLES `table_name` WRITE; SET autocommit=0; SET foreign_key_checks=0; SET unique_checks=0; 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,5 +1,5 @@ LOCK TABLES `table_name` WRITE; /*!40000 ALTER TABLE `table_name` DISABLE KEYS */; /*.... @@ -8,5 +8,5 @@ INSERT IGNORE INTO ....*/ /*!40000 ALTER TABLE `table_name` ENABLE KEYS */; UNLOCK TABLES; -
kbsali revised this gist
Nov 22, 2013 . 2 changed files with 14 additions and 2 deletions.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 @@ -4,10 +4,10 @@ SET foreign_key_checks=0; SET unique_checks=0; /*.... INSERT ... ON DUPLICATE KEY UPDATE INSERT IGNORE INTO ....*/ SET unique_checks=1; 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,12 @@ LOCK TABLES `locations` WRITE; /*!40000 ALTER TABLE `locations` DISABLE KEYS */; /*.... INSERT INTO ... ON DUPLICATE KEY UPDATE INSERT IGNORE INTO ....*/ /*!40000 ALTER TABLE `locations` ENABLE KEYS */; UNLOCK TABLES; -
kbsali created this gist
Nov 22, 2013 .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,17 @@ LOCK TABLES `locations` WRITE; SET autocommit=0; SET foreign_key_checks=0; SET unique_checks=0; /* INSERT ... ON DUPLICATE KEY UPDATE INSERT IGNORE INTO */ SET unique_checks=1; SET foreign_key_checks=1; COMMIT; SET autocommit=1; UNLOCK TABLES;