MySQL Forums
Forum List  »  Newbie

Re: Multiple table joins
Posted by: markel_mike
Date: May 01, 2005 10:41AM

The problem you are trying to resolve is best handled by a UNION statement.....quoting the manual:

"UNION is used to combine the result from many SELECT statements into one result set. UNION is available from MySQL 4.0.0 on.

Selected columns listed in corresponding positions of each SELECT statement should have the same type. (For example, the first column selected by the first statement should have the same type as the first column selected by the other statements.) The column names used in the first SELECT statement are used as the column names for the results returned. "


It "unions" many tables together. UNION is a basic SQL command found in almost any RDBMS I can think of.

Hope this helps.

Options: ReplyQuote


Subject
Written By
Posted
M
April 15, 2005 02:29PM
May 01, 2005 06:11AM
Re: Multiple table joins
May 01, 2005 10:41AM
May 01, 2005 11:02AM
May 01, 2005 12:54PM


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.