您的位置:首页 > 数据库 > Oracle

oracle number类型缺少精度

2017-12-05 07:53 225 查看
例子:

select * from

(select  sum(nvl(x3,0)) x3,max(xxdm) xxdm,max(bh) bh from tjb2017.jcj511 where bh=1 group by xxdm)a,

(select  sum(nvl(x3,0)) x3,max(xxdm) xxdm,max(bh) bh from tjb2017.jcj511 where bh in (4,10,12,14) group by xxdm)b   

where    a.xxdm = b.xxdm and to_char(round( a.x3  ,2),'FM9999999999999999.00')!= to_char(round( b.x3  ,2),'FM9999999999999999.00')
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: