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 -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -