SET TERM ^ ;

CREATE trigger ttbparametros_insumo_b01d for tbparametros_insumo
active before delete position 0
AS
BEGIN
    IF(OLD.ID > 0) THEN
    BEGIN
        DELETE FROM TBPARAMETROS_INSUMO_ITEM WHERE PARAMETROS_INSUMO_ID = OLD.ID;
    END
END
^

SET TERM ; ^

