Created
April 3, 2013 09:20
-
-
Save benedict-w/5299690 to your computer and use it in GitHub Desktop.
mysql remove orphans
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
DELETE FROM `_table_1` | |
WHERE `_key` NOT IN (SELECT `key` FROM `_table_2`) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment