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

update query and joins

Status
Not open for further replies.

mrsbean

Technical User
Jul 14, 2004
203
US
I always have trouble with this. I want to perform an update on table1 based on information which is obtained from table2. Here's what I tried. It doesn't work. Can anyone tell me how to do it correctly and/or a tutorial which will help me understand it better? I'm using MySQL 3.23.58 so I can't use inner joins.

Code:
UPDATE tblmembership LEFT JOIN tblduespaid ON tblmembership.wsuaaID = tblduespaid.wsuaaID SET tblmembership.userGroup = 1
WHERE (((tblduespaid.Year)=2006)) OR (((tblduespaid.Year)=2007));

MrsBean
 
There is no php question here. You would be better served in the MySQL forum (forum436).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top