Re: [Postgresql-it] Sequenze

  • From: max jacob <Max.Jacob@xxxxxxxx>
  • To: postgresql-it@xxxxxxxxxxxxxxxxx
  • Date: Mon, 07 Feb 2005 10:00:03 +0100

mi rispondo da solo:

"Return the value most recently obtained by nextval for this sequence in the current session. (An error is reported if nextval has never been called for this sequence in this session.) Notice that because this is returning a session-local value, it gives a predictable answer even if other sessions are executing nextval meanwhile. "

m.



max jacob wrote:



SELECT currval() è mio amico per recuperare il valore generato.


non può dare problemi su accessi concorrenti?
m.

_______________________________________________
Postgresql-it mailing list
Postgresql-it@xxxxxxxxxxxxxxxxx
http://www.linuxtime.it/mailman/listinfo/postgresql-it




Other related posts: