http://topic.youkuaiyun.com/u/20070406/11/4316a999-0254-41f1-ab67-559b82a9e0f8.html
1 如果是作为控制条件:
--aa为变量
if aa is null then
...
end if;
2 如果是sql语句:
--aa为列名
select decode(aa,null, '当空时要填充的内容 ', '非空时内容 ', '默认内容 ') from yourtable
3 如果作为sql语句中的条件:
select ... from tablename where aa is null and ...