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

SET_PERIODID

 

Описание

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

 

Определение

CREATE TRIGGER SET_PERIODID FOR PERIODS
ACTIVE BEFORE INSERT POSITION 0
AS
BEGIN
  IF (NEW.PERIODID IS NULL) THEN
    NEW.PERIODID = GEN_ID(GEN_PERIODS_ID,1);
  NEW.createtime = current_timestamp;
  execute procedure users_getid ('') RETURNING_VALUES NEW.createuserid;
END

 

     Previous topic Chapter index Next topic