oracle 替换列中null值
1.替换scott表中comm列 用0代替null
select empno,(case when comm is null then 0 else comm end ) as comm from scott.emp;
- 1楼tingshun1989昨天 15:40
- nvl不是更好?
发布时间: 2012-09-23 10:28:11 作者: rapoo
oracle 替换列中null值
1.替换scott表中comm列 用0代替null
select empno,(case when comm is null then 0 else comm end ) as comm from scott.emp;