用sql语句查询一列名中的各个数值的个数

SELECT COUNT(case when f.fileState=2 then 0 end) as fixed,COUNT(case when f.fileState=3 then 0 end) as Issue,COUNT(case when f.fileState=5 then 0 end) as decrypt FROM File f

posted on 2017-04-21 15:10  牛奶糖13号  阅读(1105)  评论(0编辑  收藏  举报

导航