我怎样才能使这个查询工作:
SELECT column1.....,SUM(Hits) AS Hits
FROM table
WHERE SUM(Hits) > 100
GROUP BY column1.....
问题是where子句,mysql显示错误:
Error Code : 1111
Invalid use of group function
我尝试将查询更改为:
SELECT column1.....,SUM(Hits) AS Hits
FROM table
WHERE Hits > 100
GROUP BY column1.....
它没有帮助。
谢谢