12 messages in com.mysql.lists.dotnetRE: SELECT LAST_INSERT_ID() not working
FromSent OnAttachments
Paulo Augusto05 Mar 2006 10:02 
Pete Alvin09 Mar 2006 08:36 
Darren Hill09 Mar 2006 08:41 
Daniel Fisla09 Mar 2006 09:11 
Lynn Eriksen09 Mar 2006 09:24 
ElRincónDelFER09 Mar 2006 13:42 
Lynn Eriksen09 Mar 2006 13:43 
Darren Hill09 Mar 2006 13:45 
Darren Hill09 Mar 2006 13:45 
Lynn Eriksen09 Mar 2006 13:45 
Daniel Fisla09 Mar 2006 13:46 
Darren Hill10 Mar 2006 10:50 
Subject:RE: SELECT LAST_INSERT_ID() not working
From:ElRincónDelFER (elri@hotmail.com)
Date:03/09/2006 01:42:52 PM
List:com.mysql.lists.dotnet

Hi Darren, I try sometimes LAST_INSERT_ID and it works perfect. The function works correctly when you insert a record and in the same connection do the select. It's necessary that you have to launch the select in the same connection that you inserted the record. You can say the table where you want to see the last id. SELECT LAST_INSERT_ID() FROM TABLE;

I hope help you.

Fermín Latas

-----Mensaje original----- De: Darren Hill [mailto:dhi@ormac.com] Enviado el: jueves, 09 de marzo de 2006 17:42 Para: dot@lists.mysql.com Asunto: SELECT LAST_INSERT_ID() not working Importancia: Alta

Sorry all,

But this is huge. The SELECT LAST_INSERT_ID() has decided to stop working and I'm stumped. Is this a bug in the new connector?

________________________________________ Darren Hill - dhi@ormac.com

________________________________________