So sprach Graeme B. Davis am Tue, May 01, 2001 at 01:09:15PM -0400:
> Ok I was thinking that you had to tell LAST_INSERT_ID the table you wanted
> to get the last insert id from.  What if you run a web site and you have 10
> tables in a database, how can you tell what the last insert id of table 6
> was?

You can't.  last_insert_id() will tell you the last_insert_id from the
current session/connection.

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:       http://www.digitalprojects.com   |   http://www.iso-top.de
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen
                Uptime: 2 days 12 hours 3 minutes

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to