Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> ALL_CONSTRAINTS and NOT NULL columns

ALL_CONSTRAINTS and NOT NULL columns

From: Martijn Tonies <m.tonies_at_upscene_nospam_.com>
Date: Tue, 23 Nov 2004 15:38:56 +0100
Message-ID: <10q6iqg1m36fm3f@corp.supernews.com>


Hi all,

I have been searching the Oracle 10 docs, but cannot find an answer to this question.

Is there a way to know that a row in ALL_CONSTRAINTS of type C (check constraint) is "only" a NOT NULL constraint on a column instead of a user written check constraint?

I have been experimenting, but it seems that ALL_CONS_COLUMNS always returns columns involved in the check constraint text and that for "not null" constraint, the constraint text is always: "<column_name>" IS NOT NULL

But is that really the only way?

-- 
With regards,

Martijn Tonies
Database Workbench - developer tool for InterBase, Firebird, MySQL & MS SQL
Server.
Upscene Productions
http://www.upscene.com
Received on Tue Nov 23 2004 - 08:38:56 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US