Re: MSSQL equivalent for mysql_insert_id ?
| From: | l0t3k | Date: | Tue, 06 Nov 2001 15:41:41 +0000 |
| Subject: | Re: MSSQL equivalent for mysql_insert_id ? | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-14053@lists.php.net to get a copy of this message | ||
its the value returned by the query "SELECT @@IDENTITY"
Hace <why@do-youread.this> wrote in message
news:3bead00e.10919721@news.php.net...
>
>
> Is there a MSSQL equivalent for:
>
>
> function getlastinsertedId ()
> {
> return mysql_insert_id();
> }
>
>
> I use the above function to retrieve the 'id' of the last inserted
> record from an insert-query.
>
> If there is another way to accomplish the same thing with MS-SQL
> server and PHP, please let me know.
>
> Thanks in advance,