postgresql中decimal数据类型和numeric数据类型有什么区别?我在手册中找不到任何区别。postgresql中decimal和numeric数据类型有什么区别
5
A
回答
2
还有没有 PostgreSQL的区别。 Per documentation:
类型
decimal
和numeric
是等价的。这两种类型都是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
相关问题
- 1. Cassandra数据类型中的INT和VARINT有什么区别?
- 2. MySQL中BLOB和TEXT数据类型有什么区别?
- 3. `pandas.read_csv`中`str`和`object`数据类型有什么区别?
- 4. sqlalchemy的数据类型中的Varchar和String有什么区别?
- 5. webassembly数据类型中的uint32和i32有什么区别?
- 6. 基元类和基元数据类型有什么区别?
- 7. MySQL BOOL和BOOLEAN列数据类型有什么区别?
- 8. 泛型类型和泛型类型定义有什么区别?
- 9. HTML代码Numeric和Friendly有什么区别?
- 10. PostgreSQL中的位和布尔数据类型的区别
- 11. “流类型”套接字和“数据报”套接字类型有什么区别?
- 12. 数据设计和数据模型(ERD)有什么区别
- 13. MVC模型,数据和数据库有什么区别?
- 14. 数据模型和对象模型有什么区别?
- 15. 有界通配符和类型参数有什么区别?
- 16. ASN.1枚举类型和选择类型有什么区别?
- 17. 潜类型和Manifest类型有什么区别?
- 18. 类型定义和类型引用有什么区别?
- 19. 什么Java数据类型对应于Oracle SQL数据类型NUMERIC?
- 20. cl_datatype和通常数据类型之间的区别是什么
- 21. 文档类型有什么区别
- 22. HostingEnvironment类和HttpRuntime类有什么区别?
- 23. java.awt.Rectangle类和java.awt.geom.Rectangle2D.Double类有什么区别?
- 24. 这些数据类型有什么区别?
- 25. 这三个Oracle数据类型有什么区别?
- 26. 修复Float和Numeric字段类型之间的区别
- 27. OWL int和整数类型有什么区别
- 28. 按原型定义函数和类属性有什么区别?
- 29. C#&CLI与值类型和构造函数有什么区别?
- 30. 有什么区别`和$(Bash中有什么区别?
你可以按照下面给出的链接: http://stackoverflow.com/questions/1841915/difference-betweeen-decimal-and-numeric – jyotiprakash 2012-02-27 11:12:13
感谢,它帮助 – 2012-02-27 11:42:26