note 109891 added to pdostatement.rowcount

From: Date: Fri, 31 Aug 2012 00:09:16 +0000
Subject: note 109891 added to pdostatement.rowcount
Groups: php.notes 
Request: Send a blank email to php-notes+get-190287@lists.php.net to get a copy of this message
Note that an INSERT ... ON DUPLICATE KEY UPDATE statement is not an INSERT statement, rowCount won't return the number or rows inserted or updated for such a statement. For MySQL, it will return 1 if the row is inserted, and 2 if it is updated, but that may not apply to other databases. ---- Server IP: 69.147.83.197 Probable Submitter: 72.66.65.133 ---- Manual Page -- http://www.php.net/manual/en/pdostatement.rowcount.php Edit -- https://master.php.net/note/edit/109891 Del: integrated -- https://master.php.net/note/delete/109891/integrated Del: useless -- https://master.php.net/note/delete/109891/useless Del: bad code -- https://master.php.net/note/delete/109891/bad+code Del: spam -- https://master.php.net/note/delete/109891/spam Del: non-english -- https://master.php.net/note/delete/109891/non-english Del: in docs -- https://master.php.net/note/delete/109891/in+docs Del: other reasons-- https://master.php.net/note/delete/109891 Reject -- https://master.php.net/note/reject/109891 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#190287) next »