Описание
(Нет описания для триггера 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