On Mon, Sep 05, 2005 at 04:05:53PM -0500, Jaime Casanova wrote:
> Bueno, si se puede pero no usando serial tendrias que asignar
> manualmente el siguiente codigo haciendo un: select codigo from tabla
> order by codigo desc limit 1
Eso no funciona si tienes dos procesos insertando simultaneamente ...
ambos pueden querer insertar el mismo numero.
--
Alvaro Herrera -- Valdivia, Chile Architect, www.EnterpriseDB.com
"The important things in the world are problems with society that we don't
understand at all. The machines will become more complicated but they won't
be more complicated than the societies that run them." (Freeman Dyson)