在sql server 2005中执行以下语句: DECLARE @a DECIMAL(18,6)SET @a=31.5/2770SELECT @a DECLARE @b DECIMAL(18,6)SET @b=31.50/2770SELECT @b 结果:
DECLARE @a DECIMAL(18,6)SET @a=31.5/2770SELECT @a
DECLARE @b DECIMAL(18,6)SET @b=31.50/2770SELECT @b
结果:
------------------------------
0.011371
0.011372
请问为什么?