CREATE SEQUENCE GTBMENU;

CREATE TRIGGER TBMENU_BI FOR TBMENU
ACTIVE BEFORE INSERT POSITION 0
AS
BEGIN
  IF (NEW.ID IS NULL) THEN
    NEW.ID = GEN_ID(GTBMENU,1);
END;



--

ALTER TABLE TBOC
    ADD OC_ENVIADA CHAR(1) DEFAULT '0';