Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Delete a Record
"Massimiliano" <melidoro_at_next.fi.it> wrote in message news:<%Uw68.16712$3J1.518271_at_news2.tin.it>...
> I use the WHEN-REMOVE-RECORD trigger to check that the current record
> doesn't affect others record .
> If it doesn't affect any other record I can delete it , in the other case
> no. I try to use abort_query to stop the delete, but the record is always
> deleted.
> What can I try again?
use raise_application_error, this will automatically roll back the statement in error.
Hth
Sybrand Bakker
Senior Oracle DBA
Received on Fri Feb 01 2002 - 13:24:16 CST
![]() |
![]() |