Re: mysql_insert_id
| From: | Datahntr | Date: | Wed, 05 Jul 2000 19:51:29 +0000 |
| Subject: | Re: mysql_insert_id | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-881@lists.php.net to get a copy of this message | ||
""MK"" <mkolodenko@hotmail.com> wrote in message
news:8ijt2k$c2f$1@toye.php.net...
> If I perform a delayed insert into a table with an autoincrement variable,
> will I be able to still use the mysql_insert_id function to get the
> autoincremented value?
>
> Thanks for your help.
>
> --
> Michael Kolodenko
The mySQL documentation says the last insert ID is not available for an
INSERT DELAYED operation (see the mySQL manual (v. 3.23.16-alpha) pg
210-211). You might try LOW_PRIORITY instead, which is a "blocking" call (it
waits until the insert is done, then returns, along with a last insert ID).
--
O.