Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Query to select "check" constraints?
Hmm, this is closer:
select
C.table_name,
CC.COLUMN_NAME ,
SEARCH_CONDITION
from
USER_CONSTRAINTS C ,
USER_CONS_COLUMNS CC
where CONSTRAINT_TYPE = 'C'
AND CC.TABLE_NAME = 'BRKR' AND CC.TABLE_NAME = C.TABLE_NAME AND CC.CONSTRAINT_NAME = C.CONSTRAINT_NAMEORDER BY CC.TABLE_NAME But still returns 543 rows for this one table! And takes _a long_ time to run.
Can anyone show me the error of my ways? Received on Fri Aug 17 2001 - 08:52:20 CDT