09 2020 档案
SQL一条语句统计记录总数及各状态数
摘要:select count(1)总记录数,sum(case when status=1 then 1 else 0 end)正确数,sum(case when status=0 then 1 else 0 end) 错误数 from T 阅读全文
posted @ 2020-09-10 08:38 michellexiaoqi 阅读(3943) 评论(0) 推荐(0)