RE: [GENERAL] getting the currval of a sequence

1998-08-17 Thread Jackson, DeJuan
> Jackson, DeJuan wrote: > > > > I think you should just go with what Vadim suggested and use: > > select currval('my_sequence'); > > This will be the same within a transaction, even if there is another > ^^^ > sess

RE: [GENERAL] getting the currval of a sequence

1998-08-14 Thread Jackson, DeJuan
> > I think you should just go with what Vadim suggested and use: > > select currval('my_sequence'); > > This will be the same within a transaction, even if there is another > > transaction using the same sequence. > > Sorry, I wasn't thinking of it happening in the same transaction. In

Re: [GENERAL] getting the currval of a sequence

1998-08-14 Thread James Olin Oden
> I think you should just go with what Vadim suggested and use: > select currval('my_sequence'); > This will be the same within a transaction, even if there is another > transaction using the same sequence. Sorry, I wasn't thinking of it happening in the same transaction. In that case

[GENERAL] getting the currval of a sequence

1998-08-14 Thread Fran Fabrizio
Hi all, I need to do the equivalent of: select my_sequence.CURRVAL from Sys.dual; so I'm guessing its: select currvar('my_sequence') from ???; Can anyone fill in the Thanks! -Fran