Skip to content

Instantly share code, notes, and snippets.

@suvene
Created July 12, 2011 16:05
Show Gist options
  • Save suvene/1078289 to your computer and use it in GitHub Desktop.
Save suvene/1078289 to your computer and use it in GitHub Desktop.
update (
select
a.id a_id
, b.id b_id
, a.val a_val
, b.val b_val
from a inner join b
on a.id = b.id
) set
a_val = b_id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment