select case when invoice.fc = 'JPY' then floor(packing.price) else round(packing.price,2) end as price from packing inner join invoice on....以上查询出来的结果还是保留小数点后4位,只起到了四舍五入的效果,求高人指点,或有什么好的方法没有?谢谢先了~~
------解决方案-------------------- when invoice.fc = 'JPY' then floor(packing.price) else cast(round(packing.price,2) as numeric(18,2)) end 整数是出不来的,不要问为什么,自己去想
------解决方案-------------------- case when invoice.fc = 'JPY' then floor(packing.price) else cast(packing.price as dec(18,2)) end
------解决方案--------------------