Trigger Previous topic Chapter index Next topic

PRESET_INS

 

Beschreibung

Trigger um den Primary Key zu setzen.

 

Definition

CREATE TRIGGER PRESET_INS FOR PRESETS
ACTIVE BEFORE INSERT POSITION 0
AS 
BEGIN 
  IF (NEW.PTID IS NULL) THEN 
     NEW.PTID = GEN_ID(PTID_GEN, 2);
END

 

     Previous topic Chapter index Next topic