标签:count having 数据 大于 sel -- error: ror 查询
-- 查询年龄大于20岁的人,按性别分组,统计每组的人数,并只显示性别人数大于2的数据条数
Error:SELECT count(), from student WHERE age>20 GROUP BY sex HAVING count()>2;
SELECT ,count() from student WHERE age>20 GROUP BY sex HAVING count()>2;
标签:count having 数据 大于 sel -- error: ror 查询
原文地址:https://www.cnblogs.com/hellsino/p/11909303.html