alter child table add constraint foreign key ... references ... exceptions into <exception_table>
then delete the rowids in the child table that are in the exception table --- Richard Huntley <[EMAIL PROTECTED]> wrote: > TIA List, > > What is the most efficient way to remove child records from a table > that have no parent records in it's parent table. I want to build a > FK, > to keep this from happening, but I need to do some cleanup first. > > > __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Rachel Carmichael 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).
