Last active
December 14, 2015 10:08
-
-
Save songyunlu/5070114 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
SELECT * FROM table1 WHERE id IN (SELECT id FROM table2); | |
/* 可能引起同步的延遲,還可能導致同步出錯,特別是有設定 AUTO_INCREMENT 時 */ | |
INSERT INTO table1 (SELECT * FROM table2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment