Created
July 19, 2013 13:41
-
-
Save cristianciofu/6039177 to your computer and use it in GitHub Desktop.
In case you'll ever need to update a field from a table with a value that's on a different 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 TABLE1 | |
INNER JOIN TABLE2 ON (TABLE1.field = TABLE2.field) | |
SET TABLE1.fieldToChange = TABLE2.fieldNewValue |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment