"localhost:/firebird/data/ILICHEVSK2.FDB". Триггеры Previous topic Chapter index Next topic

SESSIONS_SET_ID

 

Описание

(Нет описания для триггера SESSIONS_SET_ID)

 

Определение

CREATE TRIGGER SESSIONS_SET_ID FOR SESSIONS
ACTIVE BEFORE INSERT POSITION 0
AS
BEGIN
  IF (NEW.SESSIONID IS NULL) THEN NEW.SESSIONID = GEN_ID(SESSIONS_GEN_ID,1);
  IF (NEW.SESSIONID IS NULL) THEN NEW.SESSIONID = 1;
END

 

     Previous topic Chapter index Next topic