Re: Primary Key Value
| From: | Beau Lebens | Date: | Wed, 28 Feb 2001 05:05:00 +0000 |
| Subject: | Re: Primary Key Value | ||
| References: | 1 2 3 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-7008@lists.php.net to get a copy of this message | ||
mysql_insert_id()
i *think* also
pg_lastiod()
or something similar...
At 08:57 PM 2/27/01 -0800, Richard S. Crawford wrote:
Suppose I put data into a table using an Insert query, and that the table generates a primary key for the data. Is there a way to get at that primary key without running a separate select query against the table? -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net For additional commands, e-mail: php-db-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net-- Beau Lebens - Web Master Insurance My Way, Your Friendly Online Broker (08) 9226 5888 http://www.insurancemyway.com.au/