RE: [PHP-WIN] MySQL to SQL7 or Access

From: Date: Wed, 13 Dec 2000 09:00:23 +0000
Subject: RE: [PHP-WIN] MySQL to SQL7 or Access
References: 1 2  Groups: php.windows 
Request: Send a blank email to php-windows+get-4431@lists.php.net to get a copy of this message
Hi: > My issue is this particular fuction in MySQL, mysql_insert_id() which > conveniently gives us a running number ID for a newly created record. MSSQL has an internal variable called @@IDENTITY, which gives you what you want. A suggestion is using a stored procedure (good for better performance) with this T-SQL code: insert into foo(...) ... select @@IDENTITY as LastInsertion Greetings, k.

« previous php.windows (#4431) next »