Byteint – 1 Byte
Smallint – 2 Bytes
Integer – 4 Bytes
Bigint – 8 Bytess
Decimal – 2 Bytes To 8 Bytes
Float – 8 Bytes
Date – 4 Bytes
Time – 6 Bytes
Time With Zone – 8 Bytes
Timestamp – 10 Bytes
Timestamp With Zone – 12 Bytes
Smallint – 2 Bytes
Integer – 4 Bytes
Bigint – 8 Bytess
Decimal – 2 Bytes To 8 Bytes
Float – 8 Bytes
Date – 4 Bytes
Time – 6 Bytes
Time With Zone – 8 Bytes
Timestamp – 10 Bytes
Timestamp With Zone – 12 Bytes
The range of value for numeric datatypes can be calculated by formula
2 power of (No.of Bytes*8 -1)
Example for smallint = 2 power of ((2*8) -1) = 2 power of 15 =32768
Comments
Post a Comment