为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【DM版本】:8
【操作系统】:windows
【CPU】:
【问题描述】*:mysql转达梦语法,count含if函数
例如:select count(if(type=‘20’,true,null)) as type from table 这个部分的if该怎么改,改成case when type=‘20’ then true else null end 也没用
回答 0
暂无回答
清晨的荷花都开了
换成sum(case when type=‘20’ then 1 else 0 else) 这样可以了
换成sum(case when type=‘20’ then 1 else 0 else) 这样可以了