Re: [PHP-DB] Primary Key Value

2001-02-27 Thread Beau Lebens

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
Beau Lebens - Web Master
Insurance My Way, Your Friendly Online Broker
(08) 9226 5888
http://www.insurancemyway.com.au/


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DB] Primary Key Value

2001-02-27 Thread Richard S. Crawford

Perfect!  Thanks.

At 01:05 PM 2/28/01 +0800, Beau Lebens wrote:
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

--
Beau Lebens - Web Master
Insurance My Way, Your Friendly Online Broker
(08) 9226 5888
http://www.insurancemyway.com.au/


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]