什么是 SQL (MS SQL Server)的十进制
相当于 .NET ?
What is the SQL (MS SQL Server) Decimal
equivalent in .NET?
它应该是双击
,十进制
或浮动
(单
在VB.NET)?
Should it be Double
, Decimal
or Float
(Single
in VB.NET)?
有没有的确切的同等类型在.NET中,像SQL的十进制类型是固定的点,而.NET的 System.Decimal
类型为浮动(十进制)点类型。
There's no exact equivalent type in .NET, as SQL's decimal type is fixed point, whereas .NET's System.Decimal
type is a floating (decimal) point type.
不过, System.Decimal
绝对是最接近的匹配,一般应获得用于重新present存储在一个十进制列在SQL数据库中的值
However, System.Decimal
is definitely the closest match, and should generally be what's used to represent the value stored in a decimal column in a SQL database.