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 [EMAIL PROTECTED] (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: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] (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).