Subject | Re: Set Firebird generator value from SP |
---|---|
Author | Ali Gökçen |
Post date | 2006-03-05T13:43:51Z |
GEN_ID(mygen,-GEN_ID(mygen,0)); -- set to zero
GEN_ID(mygen,(select max(myidfield) from mytable)); -- set to max id
Ali
--- In firebird-support@yahoogroups.com, "majstoru" <majstoru@...>
wrote:
GEN_ID(mygen,(select max(myidfield) from mytable)); -- set to max id
Ali
--- In firebird-support@yahoogroups.com, "majstoru" <majstoru@...>
wrote:
>in
> Hi,
>
> How can I write a SP or query statement in the FirebirdSQL that will
> set all Genrators to 0, or to get last value from tables and put it
> to the generator value?
>
> Thanks for support!
>