Created
December 7, 2012 10:02
-
-
Save matiit/4232250 to your computer and use it in GitHub Desktop.
Updating table in different database
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
UPDATE | |
database1.table D1, | |
database2.table D2 | |
SET D1.email=D2.email | |
WHERE D1.domain=D2.domain AND D1.email IS NULL AND D2.email <>''; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment