Skip to content

Instantly share code, notes, and snippets.

@phantom42
Created December 13, 2012 16:27
Show Gist options
  • Save phantom42/4277658 to your computer and use it in GitHub Desktop.
Save phantom42/4277658 to your computer and use it in GitHub Desktop.
oracle update column with select from other table. http://www.sqlfiddle.com/#!4/ee7da/2306
UPDATE destTable d
SET d.column = (select column from sourceTable where id = [id])
WHERE [id] = 1
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment