Subject | Re: [firebird-support] Generators Associated with a Table |
---|---|
Author | Milan Babuskov |
Post date | 2003-11-11T16:10:15Z |
Milan Babuskov wrote:
--
Milan Babuskov
http://fbexport.sourceforge.net
> create trigger tx1 for table1This should be: select max(pk)+1 from table1 into new.pk;
> before insert
> as
> begin
> if exists (select * from table1 where pk = new.pk) then
> begin
> select max(pk) from table1 into new.pk;
> endNot my day today :(
> end
--
Milan Babuskov
http://fbexport.sourceforge.net