행위

제약사항 생성 스크립트

DB CAFE

Dbcafe (토론 | 기여)님의 2020년 2월 29일 (토) 18:28 판
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)
thumb_up 추천메뉴 바로가기


제약사항 생성쿼리

select dbms_metadata.get_ddl('CONSTRAINT', c.constraint_name)
from 
   user_constraints c 
where 
   c.constraint_type = 'P';