Sql Decimal(x,0) - 数据类型优于Integer / Bigint

时间:2014-10-17 15:01:25

标签: sql integer decimal long-integer biginteger

我刚看到一个使用Decimal-datatypes的sql配置 作为ID列,而不是Ingeger / BigInt列。

例如,它使用Decimal(9,0)或Decimal(38,0)。 为什么要这么做? 使用十进制类型的优点是什么? 整数表示? 当你重视价值时,我发现有一个优势 需要比BigInt更大。但是你为什么要使用Decimal(9,0)?

0 个答案:

没有答案
相关问题