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

update and joins

Status
Not open for further replies.

mrsbean

Technical User
Jul 14, 2004
203
US
I always have trouble with joins ... especially when I'm using an older version of MySQL which does not support Inner Joins. The following query does not work. Can anyone help me fix it and/or direct me to a tutorial where I learn this? I usually use the query builder in MS Access when I have a difficult query to write, and it doesn't always work in MySQL:


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

MrsBean
 
all versions of mysql support inner joins. if you mean older versions don't support multiple table updates that is a different thing entirely. which version of mysql are you using?
 
mrsbean said:
I usually use the query builder in MS Access when I have a difficult query to write, and it doesn't always work in MySQL
that's because Access and MySQL use different versions of sql :)

r937.com | rudy.ca
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top