mysql select where count more than x -


how can create mysql query requires count of total same query on x?

eg

$result=mysql_query("select * db bananas='1' , oranges='2' , [count of query more 5]"); 

thanks!

m

edit

to more clear... , im looking is:

$result=mysql_query("select * db bananas='1' , oranges='2' group pineapples order sum(sugar) desc limit 1 , [[[count of pineaples bananas='1' more 5]]]"); 

hope helped...

and (select count(*) foo bar) > 5

or

group baz having count(*) > 5


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -