RDB/Postgresql

[PostgreSQL] Numeric Types

창문닦이 2020. 1. 13. 16:15

PostgreSQL에서의 숫자 자료형을 계속 검색하길래.. 포스팅을 올린다. ㅠㅠ

8.1. Numeric Types

Numeric types consist of two-, four-, and eight-byte integers, four- and eight-byte floating-point numbers, and selectable-precision decimals. Table 8-2 lists the available types.

Table 8-2. Numeric Types

NameStorage SizeDescriptionRange

smallint 2 bytes small-range integer -32768 to +32767
integer 4 bytes typical choice for integer -2147483648 to +2147483647
bigint 8 bytes large-range integer -9223372036854775808 to 9223372036854775807
decimal variable user-specified precision, exact up to 131072 digits before the decimal point; up to 16383 digits after the decimal point
numeric variable user-specified precision, exact up to 131072 digits before the decimal point; up to 16383 digits after the decimal point
real 4 bytes variable-precision, inexact 6 decimal digits precision
double precision 8 bytes variable-precision, inexact 15 decimal digits precision
serial 4 bytes autoincrementing integer 1 to 2147483647
bigserial 8 bytes large autoincrementing integer 1 to 9223372036854775807

 

출처 : https://www.postgresql.org/docs/9.1/datatype-numeric.html

'RDB > Postgresql' 카테고리의 다른 글

[postgreSQL] psql \copy  (0) 2020.06.17
[PostgreSQL] pgadmin 설치  (0) 2019.09.26