Re: How to list rows violating constraints, from the exceptions table

From: Anne Crowther <adf0049_at_ggr.co.uk>
Date: 1996/11/08
Message-ID: <32837A3C.5519_at_ggr.co.uk>#1/1


Christian Bjerregård wrote:
>
> Anybody out there who knows a good way to get a printout of
> the rows in tables that violate a foreign key constraint,
> and therefore are represented in an exceptions table with
> it rowid.
>
> chbj_at_novo.dk

How about:

select a.*
from tablea a, exceptions_table b

where  a.rowid = b.row_id          -- must use column row_id not rowid
                                   -- otherwise get error
--
Anne Crowther
mailto:adf0049_at_ggr.co.uk
Received on Fri Nov 08 1996 - 00:00:00 CET

Original text of this message