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或者'' 赋值默认