SQL 中decimal数据付值的问题 declare @i decimal =0.4 print @i 得到的结果是0 后来才发现,要写成 declare @i decimal(18,2) =0.4 才行