如何创建一个要求相同查询的总数超过 x 的 MySQL 查询?
例如
$result=mysql_query("select * from DB where BANANAS='1' and ORANGES='2' and [COUNT OF THIS QUERY IS MORE THAN 5]");
谢谢!
米
编辑
为了更清楚......,我正在寻找的是:
$result=mysql_query("select * from DB where BANANAS='1' and ORANGES='2' group by PINEAPPLES order by SUM(SUGAR) desc limit 1 and [[[COUNT OF PINEAPLES WHERE BANANAS='1' IS MORE THAN 5]]]");
希望有帮助...