1.替换scott表中comm列 用0代替null
select empno,(case when comm is null then 0 else comm end ) as comm from scott.emp;
本文介绍了一种方法,用于将SCOTT表中的COMM列中的NULL值替换为0的方法。通过使用CASE WHEN语句,可以有效地实现这一目标。
1.替换scott表中comm列 用0代替null
select empno,(case when comm is null then 0 else comm end ) as comm from scott.emp;
被折叠的 条评论
为什么被折叠?