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 MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Update Query

Status
Not open for further replies.

eshaan

Technical User
Feb 20, 2003
57
US
Some have I am getting wrong data when I do update query.

I have two tables

1. tblmaster
2. tblinformation

I wantto update product field on tblinformation from tblmaster.prodct field, condition is where tblmaster.id = tblinformation.id.

Please help me.
 
Something like this ?
UPDATE tblinformation INNER JOIN tblmaster ON tblinformation.id = tblmaster.id
SET tblinformation.[product field] = tblmaster.prodct;

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