RE: [PHP-WIN] SQL and ROWID
| From: | Flint Doungchak | Date: | Thu, 19 Oct 2000 22:03:07 +0000 |
| Subject: | RE: [PHP-WIN] SQL and ROWID | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-3394@lists.php.net to get a copy of this message | ||
Assuming you're using MSSQL you can use the
SELECT @@IDENTITY
to get the identity of an autoincrement column. In MySQL there is a function
called:
mysql_insert_id();
Hope that helps.
-Flint
-----Original Message-----
From: Martin Verstegen [mailto:martinv@wxs.nl]
Sent: Thursday, October 19, 2000 2:36 PM
To: Php-Windows-Help
Subject: [PHP-WIN] SQL and ROWID
I used to work with Progress. In Progress it's possible to retrieve a rowid
from a row. It's a sort of unique number of that row. Can I retrieve
something like that from an SQL row?
If yes, how do I retrieve that rowid and after that how can I select the
same row using that rowid.
Greetinx,
Martin verstegen
2FIT