having可以用聚合函数,如having sum(money) > 1000
SELECT user_type,is_admin ,SUM(id) FROM saut_m_user WHERE id > 100 GROUP BY user_type, is_admin HAVING SUM (status) < 500 ORDER BY is_admin ASC
mysql中先执行where还是group by
标签:通过 rom UNC mysq func type where 根据 数据
查看更多关于mysql中先执行where还是group by的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did117895