user_constraints라는 View를 이용한다.
[Def]
Owner : Object소유자
Constrinat_Name
Constriant_Type : C(Check Constrinats On Table)
P(Priamary Key)
U(Unique Key)
R(Referential Integrity)
V(With Check Option On a View)
Table_Name
Search_Condition : Text Of Search condition for Table Check
R_Owner : Owner of Table used in Referential constraint
R_Constraint_Name : Name of Unique Constraint Definition For Referenced Table
Delete_Rule : The Delete Rule For a Referential Constraint: Cascade/No Action
Status : Enabled/Disabled
[Query]
select * from user_constraints;
[Result]
-----------------------------------------------------------------------------------
Owner Constraint_Name Type Table Search_Condition ........
-----------------------------------------------------------------------------------
TOTORO SYS_C003563 C BOARD SEQ IS NOT NULL ........
TOTORO SYS_C003564 C BOARD NAME IS NOT NULL ........
TOTORO SYS_C003565 C BOARD TITLE IS NOT NULL ........
TOTORO SYS_C003566 C BOARD CONTENTS IS NOT NULL ........
TOTORO PK_BOARD P BOARD ........
TOTORO SYS_C001567 C CD_BRAND "BRAND_CD" IS NOT NULL ........
댓글 없음:
댓글 쓰기