Quantcast
Channel: Programmer's Town - Trigger on constraint
Browsing latest articles
Browse All 13 View Live

Trigger on constraint

I can not understand as to catch an error constraint, I should make the trigger that it  errors about Deduced on whom the link to lead removal, can helpFor example let isCREATE TABLE supplier...

View Article



Re: Trigger on constraint

RTFM But subj does not exist.

View Article

Re: Trigger on constraint

Elic;I  here so do not catchcreate or replace trigger sup_t before delete on supplier for each row declare e_no_delete exception; pragma exception_init (e_no_delete,-02292); begin dbms_output.put_line...

View Article

Re: Trigger on constraint

Dimmf28 wrote: Elic;I  here so do not catchcreate or replace trigger sup_t before delete on supplier for each row declare e_no_delete exception; pragma exception_init (e_no_delete,-02292); begin...

View Article

Re: Trigger on constraint

Dimmf28 wrote: here so the Odd fellow does not catch, you need to read more the documentation not to advance any more such idiotic hypotheses that your crazy code will work how to you is thought,...

View Article


Re: Trigger on constraint

Elic;I do not argue the documentation it would be necessary to esteem, so can prompt to me as instead of the messageORA-02292: integrity constraint (IVANKA.FK_SUPPLIER) violated - child record found;To...

View Article

Re: Trigger on constraint

begin insert into help values (' ', 2, ' test '); exception when DUP_VAL_ON_INDEX then raise_application_error (-20001, ' the Head think. '); end;Same it is possible to make in the trigger instead...

View Article

Re: Trigger on constraint

Dimmf28 wrote: to deduce the So:dmdmdm wrote: the interpretation task  should be hung up not on a database, and on the client application.

View Article


Re: Trigger on constraint

Elic;I do socreate or replace trigger sup_t after delete on supplier for each row begin raise_application_error (-20001, ' My Text '); end;Atdelete from supplier where supplier_id=1ProducesORA-20001:...

View Article


Re: Trigger on constraint

Dimmf28 wrote: as the Slowcoach, in any way.

View Article

Re: Trigger on constraint

Dimmf28 wrote: to make the trigger what it  errors about Deduced on whom the link to lead removalMake the foreign key on delete cascade and removal will be led.

View Article

Re: Trigger on constraint

Dimitry Sibiryakov;Yes but me it is necessary to redefine the message that is beaten out by means of the trigger, it can be redefined?

View Article

Re: Trigger on constraint

Dimmf28 wrote: it can be redefined?It is impossible, break off.

View Article

Browsing latest articles
Browse All 13 View Live




Latest Images