CREATE TABLE UPD_SQL (ID INTEGER NOT NULL, V1 INTEGER, V2 INTEGER, FILENAME VARCHAR(256), SQL BLOB SUB_TYPE 1 SEGMENT SIZE 80, LG BLOB SUB_TYPE 0 SEGMENT SIZE 80, RES INTEGER)`
alter table UPD_SQL add constraint PK_UPD_SQL primary key (ID)`
CREATE SEQUENCE GEN_UPD_SQL_ID`
create trigger upd_sql_bi for upd_sql active before insert position 0 as begin if (new.id is null) then new.id = gen_id(gen_upd_sql_id,1); end`

