Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
MySQL: Update from another table
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
You can’t perform that action at this time.