This question already has an answer here:
这个问题已经有了答案:
- What represents a double in sql server? 14 answers
- 在sql server中,什么表示double ?14个答案
Is it money, float, real, decimal, _________ ?
是货币、浮动、真实、十进制、_________吗?
5 个解决方案
#1
133
Answer to this and all mapping of types can be found here.
这里可以找到所有类型的映射。
sql clr类型映射
Chart, stolen from that page:
从那一页偷来的图表:
Updated 1/7/2013 - there's a more recent version, .not so colorful here: SQL Server Data Type Mappings
更新的1/7/2013 -有一个更近期的版本,没有那么丰富:SQL Server数据类型映射。
#3
7
Float is the sql type you are looking for.
Float是您要查找的sql类型。
#4
3
float matches best. real is only 32 bits in precision, so essentially useless.
浮动的最佳匹配。实数的精度只有32位,所以本质上是无用的。
See: http://msdn.microsoft.com/en-us/library/ms173773.aspx
参见:http://msdn.microsoft.com/en-us/library/ms173773.aspx
#5
1
"The synonym for double precision is float(53)." Default value of n is 53.
双精度的同义词是float(53)。n的默认值是53。
From page http://msdn.microsoft.com/en-us/library/ms173773.aspx
从一个页面http://msdn.microsoft.com/en-us/library/ms173773.aspx
#1
133
Answer to this and all mapping of types can be found here.
这里可以找到所有类型的映射。
sql clr类型映射
Chart, stolen from that page:
从那一页偷来的图表:
Updated 1/7/2013 - there's a more recent version, .not so colorful here: SQL Server Data Type Mappings
更新的1/7/2013 -有一个更近期的版本,没有那么丰富:SQL Server数据类型映射。
#2
#3
7
Float is the sql type you are looking for.
Float是您要查找的sql类型。
#4
3
float matches best. real is only 32 bits in precision, so essentially useless.
浮动的最佳匹配。实数的精度只有32位,所以本质上是无用的。
See: http://msdn.microsoft.com/en-us/library/ms173773.aspx
参见:http://msdn.microsoft.com/en-us/library/ms173773.aspx
#5
1
"The synonym for double precision is float(53)." Default value of n is 53.
双精度的同义词是float(53)。n的默认值是53。
From page http://msdn.microsoft.com/en-us/library/ms173773.aspx
从一个页面http://msdn.microsoft.com/en-us/library/ms173773.aspx