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