hoony's web study

unique index 생성

2021. 11. 18. 15:41
728x90
반응형


PostgreSQL에 Unique Index를 생성하는 방법입니다.

https://www.postgresql.org/docs/9.4/indexes-unique.html

CREATE UNIQUE INDEX site_sector_uk1 ON site_sector (site_sector_id);


사용방법 
create unique index unique_명칭 on 테이블명 (컬럼명) 입니다.

오늘도 매일매일 하나씩 배우고 있네요. 

728x90

'DBMS > Postgres' 카테고리의 다른 글

postgres Sequence 생성하기  (0) 2021.11.29
PostgreSQL 날짜 포맷 함수  (0) 2021.11.19
column comment 추가하는 방법  (0) 2021.11.18
Postgres table comment 추가하는 방법  (0) 2021.11.18
PostgreSQL Primary Key 추가하는 방법  (0) 2021.11.18

공유하기

facebook twitter kakaoTalk kakaostory naver band
loading