행위

"제약사항 생성 스크립트"의 두 판 사이의 차이

DB CAFE

(새 문서: 제약사항 생성쿼리 select dbms_metadata.get_ddl('CONSTRAINT', c.constraint_name) from user_constraints c where c.constraint_type = 'P';)
 
1번째 줄: 1번째 줄:
 
제약사항 생성쿼리
 
제약사항 생성쿼리
 +
<source lang=sql>
 
select dbms_metadata.get_ddl('CONSTRAINT', c.constraint_name)
 
select dbms_metadata.get_ddl('CONSTRAINT', c.constraint_name)
 
from  
 
from  
5번째 줄: 6번째 줄:
 
where  
 
where  
 
   c.constraint_type = 'P';
 
   c.constraint_type = 'P';
 +
</source>

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';