//求类型为1的总和
SUM(
CASE a.problemType
WHEN 1 THEN
1
ELSE
0
END )
case 字段 when 条件 then 值1 else 值2 end 语句
求满足条件的总和SQL语句
猜你喜欢
转载自www.cnblogs.com/drawStart/p/12535816.html
今日推荐
周排行