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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Check Constraint

RE: Check Constraint

From: Jack C. Applewhite <japplewhite_at_inetprofit.com>
Date: Tue, 26 Mar 2002 14:07:26 -0800
Message-ID: <F001.00434397.20020326140726@fatcity.com>


Jay,

Two possibilities:

  1. Before you add the constraint, issue a Select query with the Where clause being the NOT version of your Check Constraint. This is the least hassle.
  2. Use the Exceptions Into clause when you create the Check Constraint. This will populate an Exceptions table with the RowIDs of the rows that violate the Check. See the Constraint_Clause section of the SQL Reference for details.

Jack



Jack C. Applewhite
Database Administrator/Developer
OCP Oracle8 DBA
iNetProfit, Inc.
Austin, Texas
www.iNetProfit.com
japplewhite_at_inetprofit.com
(512)327-9068

-----Original Message-----
Sent: Tuesday, March 26, 2002 3:15 PM
To: Multiple recipients of list ORACLE-L

When a check constraint is added to a table, is there an option in Oracle that will display or list the rows in the table that violate the constraint? TIA. Jay

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Jack C. Applewhite
  INET: japplewhite_at_inetprofit.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L

(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).
Received on Tue Mar 26 2002 - 16:07:26 CST

Original text of this message

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