Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.tools -> Re: Before insert trigger failure
Thanks, that's what I made.
Always a good answer. Bravo.
Yann
postbus_at_sybrandb.demon.nl a écrit dans le message
<96b5qb0u74_at_drn.newsguy.com>...
>In article <96ant5$2qjl$1_at_news5.isdnet.net>, "Yann says...
>>
>>Hi NG!
>>
>>I'm trying to write a before insert trigger which allows or not the
>>insertion in a table.
>>
>>What do I write for the failure ? something like
>>
>>raise no_insert;
>>...
>>exception
>> no_insert
>> null;
>>....
>>
>>Or another way ?
>>
>>Yann
>>
>>
>>
>exception when no_insert then
>raise_application_error(-20000+ any number,'any descriptive text');
>
>Hth,
>
>Sybrand Bakker, Oracle DBA
>
Received on Tue Feb 13 2001 - 09:04:01 CST
![]() |
![]() |