当前位置: 代码迷 >> Oracle管理 >> 一个SQL语句解决办法
  详细解决方案

一个SQL语句解决办法

热度:58   发布时间:2016-04-24 04:33:51.0
一个SQL语句
select deptno,ename,'' comm from (select * from tab1 where comm is not null and deptno=30)
union all
select deptno,'' ename,comm from ( select * from emp where comm is not null and deptno=30)

求解 为什么报错

------解决方案--------------------
to_char(comm,'FM99999999.99')这样就可以了
  相关解决方案