| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Finding Not Null Constraints
John Hough wrote:
>
> Can anyone give me a sql query that will distinguish between not null
> constraints and column check constraints.
>
> Both are constraint_type of 'C' and since the search_condition field
> is a "LONG" type we have been unable to utilize it in a where clause.
NOT NULL constraint is a kind of check constraint. You can query all check constraints by using
SELECT constraint_name from user_constraints where constraint_type like 'C%';
To distinguish with other check constraints, you can search the SEARCH_CONDITION column.
-- ***************************************************************************** * * * Please go to http://www.hkstar.com/~rdbms/oracle.htm to find other solns * * * ***************************************************************************** --- Name : Lun Wing San (Certified Oracle Database Administrator) Title : Oracle Database Administrator and System Administrator of QRC Phone : (852)27885841 This posting represents the personal opinions of the author. It is not the official opinion or policy of the author's employer. Warranty expired when you opened this article and I will not be responsible for its contents or use.Received on Sun Apr 27 1997 - 00:00:00 CDT
![]() |
![]() |