में दशमलव और संख्यात्मक डेटा प्रकार के बीच अंतर क्या है postgresql में दशमलव डेटा प्रकार और संख्यात्मक डेटाटाइप के बीच क्या अंतर है? मुझे मैनुअल में कोई फर्क नहीं पड़ता।postgresql
5
A
उत्तर
2
PostgreSQL में अंतर है। Per documentation:
प्रकार
decimal
औरnumeric
बराबर हैं। दोनों प्रकार एसक्यूएल मानक का हिस्सा हैं।
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>.
यानी, दशमलव के लिए कार्यान्वयन अधिक अंक से दशमलव बिंदु के बाईं ओर का अनुरोध अनुमति देने के लिए अनुमति दी है। पोस्टग्रेज़ स्वतंत्रता का अभ्यास नहीं करते हैं इसलिए हमें इन प्रकारों के बीच कोई अंतर नहीं है।
regards, tom lane
संबंधित मुद्दे
- 1. PostgreSQL
- 2. postgresql
- 3. PostgreSQL
- 4. PostgreSQL
- 5. Postgresql
- 6. PostgreSQL
- 7. postgresql
- 8. PostgreSQL
- 9. PostgreSQL
- 10. PostgreSQL
- 11. PostgreSQL
- 12. postgresql
- 13. PostgreSQL
- 14. PostgreSQL
- 15. PostgreSQL
- 16. postgreSQL
- 17. PostgreSQL
- 18. Postgresql
- 19. Postgresql
- 20. PostgreSQL
- 21. Postgresql
- 22. PostgreSQL
- 23. PostgreSQL
- 24. PostgreSQL
- 25. PostgreSQL
- 26. Postgresql
- 27. postgreSQL
- 28. PostgreSQL
- 29. PostgreSql
- 30. postgresql
तुम्हारा पीछा लिंक नीचे दिए गए कर सकते हैं: http://stackoverflow.com/questions/1841915/difference-betweeen-decimal-and-numeric – jyotiprakash
धन्यवाद, इससे मदद मिलती है –