INF: Updating Column in One Table w/ Column from Another Table

Article translations Article translations
Article ID: 46783 - View products that this article applies to.
This article was previously published under Q46783
This article has been archived. It is offered "as is" and will no longer be updated.
Expand all | Collapse all

SUMMARY

The following is an example of how to update a column in one table with a column from another table:
   UPDATE tablea
   SET tablea.colb=tableb.colb
   FROM tableb
   WHERE tablea.cola=tablea.cola
				

Properties

Article ID: 46783 - Last Review: February 27, 2014 - Revision: 3.1
APPLIES TO
  • Microsoft SQL Server 4.21a Standard Edition
  • Microsoft SQL Server 6.0 Standard Edition
  • Microsoft SQL Server 6.5 Standard Edition
  • Microsoft SQL Server 7.0 Standard Edition
Keywords: 
kbnosurvey kbarchive kbprogramming KB46783

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com