♥일홍이 개발♥

[postgreSQL] DataType 정리 본문

DB/postgresql

[postgreSQL] DataType 정리

100일홍 2021. 11. 24. 15:34
반응형
postgresql 데이터 타입

 

Name Aliases Description
bigint int8 8바이트 정수
bigserial serial8 자동증가 8바이트 정수
bit [ (n) ]
고정 길이 비트 문자열
bit varying [ (n) ] varbit 가변 비트 문자열
boolean bool 논리적 ( / 거짓)
box
rectangular box on a plane
bytea
이진 데이터 ( "바이트 배열" )
character varying [ (n) ] varchar [ (n) ] 가변 길이 문자열
character [ (n) ] char [ (n) ] 고정 길이 문자열
cidr
IPv4의 또는 IPv6 네트워크 주소
circle
circle on a plane
date
달력 날짜 (, , )
double precision float8 정밀도 부동 소수점 숫자 (8 바이트)
inet
IPv4의 또는 IPv6 호스트 주소
integer int, int4 4 바이트 정수
interval [ fields ] [ (p) ]
기간
line
infinite line on a plane
lseg
line segment on a plane
macaddr
 (미디어 액세스 제어) 주소
money
금액
numeric [ (p, s) ] decimal [ (p, s) ] 정밀하고 정확한 숫자
path
geometric path on a plane
point
geometric point on a plane
polygon
closed geometric path on a plane
real float4 단일 정밀도 부동 소수점 숫자 (4 바이트)
smallint int2 2 바이트 정수
serial serial4 자동 증가하는 4 바이트 정수
text
가변 길이 문자열
time [ (p) ] [ without time zone ]
하루 중 시간 (시간 영역)
time [ (p) ] with time zone timetz 시간대를 포함하여 하루 중 시간,
timestamp [ (p) ] [ without time zone ]
날짜 및 시간 (시간 영역)
timestamp [ (p) ] with time zone timestamptz 날짜 및 시간, 시간대 등
tsquery
텍스트 검색 쿼리
tsvector
텍스트 검색 문서
txid_snapshot
사용자 수준 트랜잭션의 ID 스냅샷
uuid
보편적 고유 식별자
xml
XML 데이터


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

반응형
Comments