27,579
社区成员
发帖
与我相关
我的任务
分享
select * , case when z1 = 0 then 0 else sl*1.0/zl end from tb
select *,(sl*1.000/zl)as zll from TB
select *,(CONVERT(DEC(18,3),sl)/zl)as zll from
select *,(sl*1.000/zl)as zll from TB
select *,(COVNERT(DEC(18,3),sl)/zl)as zll from
--如果是2位 这样
select *,cast((s1.*z1) as dec(18,2)) as z1l from 表
SELECT 1/2
0
SELECT 1.0/2
0.5
select *,(sl*1.000/zl)as zll from
精度问题
select *,(s1*1.0/z1) as z1l from 表
select *,(s1>1.0/z1) as z1l from 表