Created
February 3, 2012 08:00
-
-
Save Steven-Rose/1728857 to your computer and use it in GitHub Desktop.
MySQL: Update from another table
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 from_table t1, to_table t2 | |
SET t2.field_name = t1.field_name | |
WHERE t2.field = t1.field |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment