SELECT case
when coalesce(a.fejshid, '0') = '0' then
'0'
when coalesce(a.fejshid, '0') = '' then
'0'
else
a.fejshid
end
FROM T_DSSUBMIT A
WHERE FSTATUS = '1'
AND FISDEL = '0'
--coalesce函数判断oracle、postgresql中为null或者'' 赋值默认
coalesce函数判断oracle、postgresql中为null或者‘‘ 赋值默认
最新推荐文章于 2024-04-28 14:48:38 发布