标签:gen 数据库 平均值 sde 字段 均值 最大值 结果 color
select count(*) from students;
select max(id) from students where gender=0;
select min(id) from students where isdelete=0;
select sum(id) from students where gender=1;
select sum(id) from students where gender=1;
select 列1,列2,聚合... from 表名 group by 列1,列2,列3....
select gender as 性别,count(*) from students group by gender;
查询各城市人数
标签:gen 数据库 平均值 sde 字段 均值 最大值 结果 color
原文地址:https://www.cnblogs.com/webSciprt/p/8908676.html