decimal 数据类型The decimal data type
decimal
数据类型表示一个 128 位宽的十进制数字。The decimal
data type represents a 128-bit wide, decimal number.
decimal
数据类型的文本与 .NET 的 System.Data.SqlTypes.SqlDecimal
具有相同的表示形式。Literals of the decimal
data type have the same representation as .NET's System.Data.SqlTypes.SqlDecimal
.
decimal(1.0)
、decimal(0.1)
、decimal(1e5)
均为 decimal
类型的文本。decimal(1.0)
, decimal(0.1)
, and decimal(1e5)
are all literals of type decimal
.
有几种特殊文本形式:There are several special literal forms:
decimal(null)
:这是 NULL 值。decimal(null)
: The is the null value.