现在的位置: 首页 > 综合 > 正文

oracle 替换列中null值

2013年08月04日 ⁄ 综合 ⁄ 共 92字 ⁄ 字号 评论关闭

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

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

抱歉!评论已关闭.