2012-02-27 2020 views

回答

2

还有没有 PostgreSQL的区别。 Per documentation:

类型decimalnumeric是等价的。这两种类型都是SQL标准的一部分。

0

引自:https://www.postgresql.org/message-id/[email protected]

没有任何区别,Postgres的。有两个类型名称 ,因为SQL标准要求我们接受这两个名称。在快速 看在标准看来,唯一的区别是这样的:

 17)NUMERIC specifies the data type exact numeric, with the decimal 
     precision and scale specified by the <precision> and <scale>. 

    18)DECIMAL specifies the data type exact numeric, with the decimal 
     scale specified by the <scale> and the implementation-defined 
     decimal precision equal to or greater than the value of the 
     specified <precision>. 

即十进制数的实现是允许让更多的数字 比请求到小数点的左侧。 Postgres不会 行使这种自由,所以这些类型的 我们没有区别。

 regards, tom lane 
相关问题