Guest_imported
New member
- Jan 1, 1970
- 0
Here the SQL for creating an AUTO-INC (increment id) trigger, enjoy it:
create generator gen_yourtable;
set term !!;
create trigger yourtable_bi for yourtable active before insert position 0 as
begin
if (new.id is null) then new.id=gen_id(gen_yourtable,1);
end !!
set term; !!
create generator gen_yourtable;
set term !!;
create trigger yourtable_bi for yourtable active before insert position 0 as
begin
if (new.id is null) then new.id=gen_id(gen_yourtable,1);
end !!
set term; !!