MySQL Forums
Forum List  »  InnoDB

union
Posted by: sukasom chaiyakul
Date: April 06, 2005 02:31PM

I want to combine the result from many select statement.

(
select paperid from .....
)
union
(
select paperid from .....
) ;

For example, the select statement returns 32, 34, 31, 35

The second select statement returns 33, 36, 37 ,38


but it returns 31,32,34,35,33,36,36,38

and i want the result to be 32, 34, 31, 35, 33, 36, 37 ,38

Do you have any idea?

Options: ReplyQuote


Subject
Views
Written By
Posted
union
3563
April 06, 2005 02:31PM
2223
April 17, 2005 12:28PM


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.