Subject | Re: ROWNUM |
---|---|
Author | Adam |
Post date | 2005-01-18T02:16:50Z |
That would work, but depending on what they want, you may need to
reset it every go. It is not a threadsafe (because generators are not
isolated to your transaction), so your numbers aren't guaranteed to
be sequential, though they will be unique unless someone resets the
generator.
I would suggest implementing the row number in the client
application, or if it really needs to be on the db server, then use a
stored procedure to create it.
Adam
reset it every go. It is not a threadsafe (because generators are not
isolated to your transaction), so your numbers aren't guaranteed to
be sequential, though they will be unique unless someone resets the
generator.
I would suggest implementing the row number in the client
application, or if it really needs to be on the db server, then use a
stored procedure to create it.
Adam
> A roundabout way:1"
>
> select gen_id(ROWNUM_COUNTER, 1) as ORDER, TITLE FROM BOOK ORDER BY
>
> eMeL