You are here: Re: can this be achieved by a single mysql instruction? « PHP Programming Language « IT news, forums, messages
Re: can this be achieved by a single mysql instruction?

Posted by Sanders Kaufman on 07/20/07 22:21

Michael Fesser wrote:
> .oO(Sanders Kaufman)

>>If you use mysql_insert_id or (whatever that command is) it gets the
>>last insert *on that connection*.
>
> So does LAST_INSERT_ID(). The last auto-generated ID is maintained by
> the server on a per-connection basis. It doesn't matter if you use a
> SELECT statement or an API call to retrieve it.

Wow.
I coulda saved myself a lot of trouble a long time ago if I hadn't
learned that wrong... and taught it wrong.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация