Skip to content

Instantly share code, notes, and snippets.

@remibreton
Last active December 17, 2015 02:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save remibreton/5540449 to your computer and use it in GitHub Desktop.
Save remibreton/5540449 to your computer and use it in GitHub Desktop.
UPDATE t1 LEFT JOIN t2 ON t2.id = t1.id SET t1.col1 = newvalue WHERE t2.id IS NULL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment