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
Post a Comment