时间:2021-07-01 10:21:17 帮助过:20人阅读
select sum (val),count(typename),typename from testsum
where 1=1
group by typename
order by typename
--5 最大值max(),最小值min()
select max (val),min(val),max(num),min(num) from testsum
sql server数据库简单的sql 统计
标签:count() sql语句 insert nbsp 总计 数据库 varchar exist set