Skip to content

Instantly share code, notes, and snippets.

@2dpi
Created May 20, 2014 10:25
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 2dpi/bb5a06812bab0cb11b1b to your computer and use it in GitHub Desktop.
Save 2dpi/bb5a06812bab0cb11b1b to your computer and use it in GitHub Desktop.
SQL: copy column value from one table to another
UPDATE table1 INNER JOIN table2 ON table1.field_name = table2.field_name SET table1.field_name = table2.field_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment