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的聚合函数: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
网友评论