Re: Serial / Secuencia

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Omar Antonio Neyra Rodriguez <omarneyrarodriguez(at)gmail(dot)com>
Cc: "guillermo(dot)munoz(at)grupotekne(dot)com(dot)ar" <guillermo(dot)munoz(at)grupotekne(dot)com(dot)ar>, MIGUEL CANCHAS <mcanchas(at)tsr(dot)com(dot)pe>, pgsql-es-ayuda(at)postgresql(dot)org
Subject: Re: Serial / Secuencia
Date: 2007-10-23 22:21:08
Message-ID: 20071023222108.GY18013@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

Omar Antonio Neyra Rodriguez escribió:
> y que pasaria y antes de utilizar el currval alguien ha insertado otro
> registro???
> ¿Recuperaria el registro erroneo?

Solamente te entrega el valor que tu sesion asigna. Si en otra sesion
alguien hace un nextval(), eso no te afecta.

--
Alvaro Herrera Valdivia, Chile ICBM: S 39º 49' 18.1", W 73º 13' 56.4"
"If it wasn't for my companion, I believe I'd be having
the time of my life" (John Dunbar)

In response to

Responses

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Jairo Sánchez 2007-10-23 22:22:34 Re: instalar contrib dblink
Previous Message Alvaro Herrera 2007-10-23 22:16:23 Re: instalar contrib dblink