SET TERM ^ ;

CREATE trigger ttbbase_conhecimento_b02d for tbbase_conhecimento
active before delete position 1
AS
begin
     IF(OLD.ID > 0) THEN
     BEGIN
          DELETE FROM TBBASE_CONHECIMENTO_MENUS T WHERE T.BASE_ID = OLD.ID;
     END
end
^

SET TERM ; ^

