"제약사항 생성 스크립트"의 두 판 사이의 차이
DB CAFE
7번째 줄: | 7번째 줄: | ||
c.constraint_type = 'P'; | c.constraint_type = 'P'; | ||
</source> | </source> | ||
+ | [[category:oracle]] |
2020년 2월 29일 (토) 18:28 기준 최신판
thumb_up 추천메뉴 바로가기
- DBA { Oracle DBA 명령어 > DBA 초급 과정 > DBA 고급 과정 }
- 튜닝 { 오라클 튜닝 목록 }
- 모델링 { 데이터 모델링 가이드 }
제약사항 생성쿼리
select dbms_metadata.get_ddl('CONSTRAINT', c.constraint_name)
from
user_constraints c
where
c.constraint_type = 'P';