22,210
社区成员
发帖
与我相关
我的任务
分享
select Y=case when 1=1 then 10*1.0/3 else 0.123 end
/*
Y
---------------------------------------
3.333333
(1 行受影响)
*/
--测试数据
if not object_id(N'Tempdb..#T') is null
drop table #T
Go
Create table #T([num] DECIMAL)
Insert #T
select 10
Go
--测试数据结束
Select num/3 from #T