Skip to content

Instantly share code, notes, and snippets.

@suvene
Created July 12, 2011 15:31
Show Gist options
  • Save suvene/1078211 to your computer and use it in GitHub Desktop.
Save suvene/1078211 to your computer and use it in GitHub Desktop.
create table a(
id number,
val varchar2(20)
);
create table b(
id number,
val varchar2(20)
);
update a set
val = (
select val from b
where b.id = a.id
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment