Update one table from another using join


/ Published in: SQL
Save to your folder(s)



Copy this code and paste it in your HTML
  1. UPDATE U
  2. SET TableToUpdateCol = TableFromCol
  3. FROM TableToUpdate U
  4. JOIN TableFrom ON TableToUpdatePK = TableFromPK

Report this snippet


Comments


You need to login to view comments.