note 73898 added to function.mysql-insert-id

From: Date: Wed, 14 Mar 2007 20:38:20 +0000
Subject: note 73898 added to function.mysql-insert-id
Groups: php.notes 
Request: Send a blank email to php-notes+get-124454@lists.php.net to get a copy of this message
In comment to athies at gmail dot com 21-Jul-2005 05:36 Yes, REPLACE works, cuz according to SQL-manual: REPLACE works exactly like INSERT, except that if an old row in the table has the same value as a new row for a PRIMARY KEY or a UNIQUE index, the old row is deleted before the new row is inserted. See Section 13.2.4, “INSERT Syntax”. That's a pity that it doesn't even get a mention in the PHP-manual. ---- Server IP: 200.73.8.42 Probable Submitter: 200.42.189.21 ---- Manual Page -- http://www.php.net/manual/en/function.mysql-insert-id.php Edit -- https://master.php.net/note/edit/73898 Del: integrated -- https://master.php.net/note/delete/73898/integrated Del: useless -- https://master.php.net/note/delete/73898/useless Del: bad code -- https://master.php.net/note/delete/73898/bad+code Del: spam -- https://master.php.net/note/delete/73898/spam Del: non-english -- https://master.php.net/note/delete/73898/non-english Del: in docs -- https://master.php.net/note/delete/73898/in+docs Del: other reasons-- https://master.php.net/note/delete/73898 Reject -- https://master.php.net/note/reject/73898 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#124454) next »