oracle 替换列中null值

来源:互联网 发布:网吧游戏平台软件 编辑:程序博客网 时间:2024/04/29 22:58

1.替换scott表中comm列 用0代替null

select empno,(case when comm is null then 0 else comm end ) as comm  from scott.emp;