MySQLhaving子句

having子句:是跟group by结合使用,对分组以后的数据再次进行过滤,经常跟聚合函数结合使用 格式: select 列名/聚合函数 from 表名 where 条件 group by 列名 having 对分组后的数据进行过滤(勉强算是条件) order by 列名/聚合函数 asc/des
posted @ 2018-10-25 11:35  小白菜?  阅读(177)  评论(0编辑  收藏  举报