2011-02-25 96 views

回答

6

使用HAVING代替WHERE涉及聚合體的條件:

SELECT SUM(somecolumn) AS total FROM sometable HAVING total > 10; 
相關問題