user_cons_columns라는 View를 보면됨
[Def]
Owner : Constraints Owner
Constraint_Name
Table_Name
Column_Name
Position : Seq No
[Query]
select * from user_cons_columns;
[Result]
------------------------------------------------------------------------
Owner Constraints_Name Table_Name Column_Name Position
------------------------------------------------------------------------
ORAUSR CD_BRAND_PK CD_BRAND BRAND_CD 1
ORAUSR CD_LARGE_CD_MIDDLE_FK CD_MIDDLE LARGE_CD 1
ORAUSR CD_LARGE_PK CD_LARGE LARGE_CD 1
ORAUSR CD_MIDDLE_PK CD_MIDDLE LARGE_CD 1
ORAUSR CD_MIDDLE_PK CD_MIDDLE MIDDLE_CD 2
댓글 없음:
댓글 쓰기