Simple question on auto_increment
| From: | mario | Date: | Mon, 13 Nov 2006 22:12:02 +0000 |
| Subject: | Simple question on auto_increment | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-42663@lists.php.net to get a copy of this message | ||
Hello,
really a mysql question. Pls. help anyway.
Is there a simple, common way to implemt the following:
Say I have a table with a id autoincrement field.
I wish to insert a record but just ist id value, get back the id value,
use it to update the record.
Do I need three separate mysql queries? Is there some trick I may use?
Thanks Regards mario
--
mario <chiari.hm@flashnet.it>