
我这样写的
where ( '"&mintim&"'='' or yymmdd>'"&mintim&"' )
and ( '"&maxtim&"'='' or yymmdd<'"&maxtim&"' )
希望可以帮到你
数据库查询数小于50应该怎么设置select
sum(case when 分数>60 then 1 else 0 end) as 大于60分,
sum(case when 分数<50 then 1 else 0 end) as 大于50分
from 表名
select '大于60分',count(*) from 表名 where 分数>60
union all
select '小于50分',count(*) from 表名 where 分数<50
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)