美文网首页
关于mysql的聚合函数的应用

关于mysql的聚合函数的应用

作者: 7eba892e785d | 来源:发表于2017-10-16 16:15 被阅读0次

mysql的聚合函数:select agent_id,COUNT(*)  from sgtb_agent_comment group by agent_id HAVING COUNT(*) =2;

1、关于条件的执行流程--》from -where-group by - select-having -order by

2、group by 是分组

相关文章

网友评论

      本文标题:关于mysql的聚合函数的应用

      本文链接:https://www.haomeiwen.com/subject/yftluxtx.html