Trigger Previous topic Chapter index Next topic

SET_UHREN_POS

 

Beschreibung

Setzt die aktuelle Zeit und als Position die Anzahl UHREN Einträge.

 

Definition

CREATE TRIGGER SET_UHREN_POS FOR UHREN
ACTIVE BEFORE INSERT POSITION 0
AS
  DECLARE VARIABLE NewUhrPos INTEGER;
BEGIN
    select count(*) from UHREN INTO NewUhrPos;

    new.UHPOSITION = NewUhrPos;
    new.UHBEARBDATUM = 'NOW';
END

 

     Previous topic Chapter index Next topic