Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Update one table form other table value 1

Status
Not open for further replies.

djkoon

Technical User
Jan 19, 2005
19
US
I'm just beginner need little help
I have 2 tables. I need to update 5 fields in table 1 from 5 field in table two.
where table 1 field name "ReqID" should match with table two field name "ReqID"


any help will be great

 
UPDATE Table1 INNER JOIN Table2 ON Table1.ReqID = Table2.ReqID
SET Table1.Field1 = Table2.Field1, Table1.Field2 = Table2.Field2, ....

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top