All I know about the constraint is it's name (SYS_C003415
), but I want to see it's definition.
views:
505answers:
3
+2
A:
Looks like I should be querying ALL_CONSTRAINTS
.
select OWNER, CONSTRAINT_NAME, CONSTRAINT_TYPE, TABLE_NAME, SEARCH_CONDITION from ALL_CONSTRAINTS where CONSTRAINT_NAME = 'SYS_C003415';
Hank Gay
2008-09-17 14:27:53
A:
Or to see all constaints use SYS.DBA_CONSTRAINTS (If you have the privileges)
hamishmcn
2008-09-17 14:30:20
+1
A:
Another option would be to reverse engineer the DDL...
DBMS_METADATA.GET_DDL('CONSTRAINT', 'SYS_C003415')
Some examples here....
cagcowboy
2008-09-20 14:51:52