Subject | Re: [firebird-support] Serial number in a query result |
---|---|
Author | Jaison Joseph |
Post date | 2011-03-25T07:11:21Z |
On 25-03-2011 12:02 PM, Thomas Steinmaurer wrote:
sequence is used every time)?
Thanks,
Jaison.
>>> A throw-away SEQUENCE would also do the trick, I think:And also, it will exhaust after 32000 queries am i right (if a new
>>>
>>> sql> create sequence AdHoc;
>>> sql> select next value for AdHoc as SrNo, d.* FROM (...) d;
>>>
>>> -Mike
>>>
>>>
>> This is exactly what I want.
> Needless to say, if the generator/sequence is used by multiple users,
> then this isn't safe.
>
>
sequence is used every time)?
Thanks,
Jaison.