NVL(E1,E2)函数 如果E1为空,则显示E2的值 否则显示E1的值 select nvl(sum(t.dwxh),1) from tb_jhde t 就是如果表示sum(t.dwxh)=null 就返回1