Описание
(Нет описания для триггера SETORDERLOADID)
Определение
CREATE TRIGGER SETORDERLOADID FOR ORDERLOAD
ACTIVE BEFORE INSERT POSITION 0
AS
BEGIN
IF (NEW.ORDERLOADID IS NULL) THEN
NEW.ORDERLOADID = GEN_ID(ORDERLOADIDGEN,1);
if (NEW.state is null) then NEW.state = 1;
END