View Single Post
10-01-2009, 12:19 PM
#2
Salathe is offline Salathe
Salathe's Avatar
Status: Community Archaeologist
Join date: Jul 2004
Location: Scotland
Expertise: Software Development
Software: vim, PHP
 
Posts: 3,820
iTrader: 25 / 100%
 

Salathe will become famous soon enough

Send a message via MSN to Salathe

  Old

I may have missed the point, but it looks like you might be wanting to use a UNION rather than a JOIN since you just want to query multiple tables rather than join anything together.

See http://dev.mysql.com/doc/refman/5.4/en/union.html

Aside: whether you know it or not, by separating the tables by commas as you have, you're already doing an INNER JOIN on those tables.

Reply With Quote