(
,
'Cannot update Sklad because Instrymentu exists.'
); IF; IF;
/* ERwin Builtin Trigger */
/* Sklad Kyrjeru on parent update restrict */
/* ERWIN_RELATION: CHECKSUM = «00000000», PARENT_OWNER = »», PARENT_TABLE = «Sklad» _OWNER = »», CHILD_TABLE = «Kyrjeru» C_VERB_PHRASE = »», C2P_VERB_PHRASE = »», _CONSTRAINT = «R_31», FK_COLUMNS = «nom_post» «post_no» «inv_numb» */
/*% JoinPKPK (:% Old,:% New, В»<>В», В»ORВ») */
: old.nom_post <>: new.nom_post OR
: old.post_no <>: new.post_no OR
: old.inv_numb <>: new.inv_numbcount (*) INTO NUMROWSKyrjeru
/*% JoinFKPK (Kyrjeru,:% Old, В»=В», В»ANDВ») * /. nom_post =: old.nom_post AND.post_no =: old.post_no AND.inv_numb =: old . inv_numb; (NUMROWS> 0) _application_error (
,
'Cannot update Sklad because Kyrjeru exists.'
); IF; IF;
/* ERwin Builtin Trigger */
/* Postavka Sklad on child update restrict */
/* ERWIN_RELATION: CHECKSUM = «00000000», PARENT_OWNER = »», PARENT_TABLE = «Postavka» _OWNER = »», CHILD_TABLE = «Sklad» C_VERB_PHRASE = »», C2P_VERB_PHRASE = »», _CONSTRAINT = «R_27», FK_COLUMNS = «nom_post» «post_no» */count (*) INTO NUMROWSPostavka
/*% JoinFKPK (:% New, Postavka, В»=В», В»ANDВ») */
: new.nom_post = Postavka.nom_post AND
: new.post_no = Postavka.post_no; (
/*% NotnullFK (:% New, В»IS NOT NULL ANDВ») */= 0
) _application_error (
,
'Cannot update Sklad because Postavka does not exist.'
); IF;
ERwin Builtin Trigger;
/TRIGGER tI_Strynnue BEFORE INSERT ON Strynnue for each row
ERwin Builtin Trigger
INSERT trigger on StrynnueNUMROWS INTEGER;
/* ERwin Builtin Trigger */
/* Instrymentu Strynnue on child insert restrict */
/* ERWIN_RELATION: CHECKSUM = В«00011f2fВ», PARENT_OWNER = »», PARENT_TABLE = "Інструменти" _OWNER = »», CHILD_TABLE = В«StrynnueВ» C_VERB_PHRASE = »», C2P_VERB_PHRASE = »», _CONSTRAINT = В«is_aВ», FK_COLUMNS = В«nom_postВ» В«post_noВ» В«inv_numbВ» */count (*) INTO NUMROWSInstrymentu
/*% JoinFKPK (:% New, Instrymentu, В»=В», В»ANDВ») */
: new.nom_post = Instrymentu.nom_post AND
: new.post_no = Instrymentu.post_no AND
: new.inv_numb = Instrymentu.inv_numb; (