Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Counting number of rows, sequences
Sorry to say it, but this is not a good idea.
Sequence doesn't rollback in case the transaction is not commited.
And CURRVAL is local to user session.
"Note that before you use CURRVAL for a sequence in your session, you
must first initialize the sequence with NEXTVAL."
JP
Juan Cachito Reyes Pacheco wrote:
> The other choice if you have to frecuently do counts to that table is a
> sequence
>
> You create an addiatoinal field with a sequence
>
> CREATE SEQUENCE, etc.
>
> row sequence
>
> 1 1
> 2 2
> ....
> 1234 1234
-- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html -----------------------------------------------------------------Received on Tue Feb 17 2004 - 16:31:17 CST
![]() |
![]() |