MySQL Forums
Forum List  »  Newbie

Re: Query from two tables
Posted by: Brian Papantonio
Date: August 08, 2007 09:35PM

The solution is to use an outer join:

SELECT *
FROM foo LEFT JOIN bar ON (foo.id = bar.fooid)

-----------------------
MySQL 5.0 Certified DBA
MySQL 5.0 Certified Developer

Options: ReplyQuote


Subject
Written By
Posted
August 08, 2007 03:20PM
Re: Query from two tables
August 08, 2007 09:35PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.