Welcome Guest, Not a member yet? Register   Sign In
How can I perform a MYSQL search query that returns two different sets of results at the same time?
#2

[eluser]XMadMax[/eluser]
Dandy_andy,

Best method would be making a UNION between both selects.
Example: http://heybigname.com/2009/09/18/using-c...ubqueries/

Also, you can make a direct query:

SELECT * FROM members WHERE sex='female' LIMIT 6
UNION
SELECT * FROM members WHERE sex='male' LIMIT 6






Messages In This Thread
How can I perform a MYSQL search query that returns two different sets of results at the same time? - by El Forum - 09-18-2012, 02:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB