oracle查询某个字段无查询结果时返回0

比如我要查xmid这个字段 

select nvl(sum(xmid),0) xmid from x_table where xmdm = 'xxxxxxxxxx'

你可能感兴趣的:(oracle)