On Sun, Dec 27, 2009 at 1:30 PM, Gary Smith <li...@l33t-d00d.co.uk> wrote:

> Victor Subervi wrote:
>
>> On Sun, Dec 27, 2009 at 12:00 PM, Michael Dykman <mdyk...@gmail.com>
>> wrote:
>>
>>
>>
>>> last_insert_id() returns the last id auto-incremented in *the current
>>> session*.  If you disconnect and reconnect, it can not be retrieved.
>>>
>>>
>>>
>>
>> Ahah! So how do I retrieve the last id inserted irrespective of
>> connection?
>>
>>
> Would max() work for you?


Ahah! No space! Got it. Thanks.
V

Reply via email to