Subject | Re: [firebird-support] Getting a unique value from a generator |
---|---|
Author | Aage Johansen |
Post date | 2005-05-12T20:04:28Z |
Peter Ypenburg wrote:
select gen_id(EXPORTLOCK_SEQ, +1) from rdb$database
between your two statements.
--
Aage J.
> Is it possible for two users who run the following SQL at the exact sameOnly if someone manages to execute a
> time (each in their own transaction) to get the same value back from a
> generator. The SQL is as follows:
>
> SELECT GEN_ID(EXPORTLOCK_SEQ, -1)
> FROM RDB$DATABASE
select gen_id(EXPORTLOCK_SEQ, +1) from rdb$database
between your two statements.
--
Aage J.