2012-02-27 13 views
5

में दशमलव और संख्यात्मक डेटा प्रकार के बीच अंतर क्या है postgresql में दशमलव डेटा प्रकार और संख्यात्मक डेटाटाइप के बीच क्या अंतर है? मुझे मैनुअल में कोई फर्क नहीं पड़ता।postgresql

+1

तुम्हारा पीछा लिंक नीचे दिए गए कर सकते हैं: http://stackoverflow.com/questions/1841915/difference-betweeen-decimal-and-numeric – jyotiprakash

+0

धन्यवाद, इससे मदद मिलती है –

उत्तर

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