Skip to content

Instantly share code, notes, and snippets.

@phantom42
Created December 13, 2012 16:27
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 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