note 97094 added to function.sqlite-changes

From: Date: Thu, 01 Apr 2010 05:06:46 +0000
Subject: note 97094 added to function.sqlite-changes
Groups: php.notes 
Request: Send a blank email to php-notes+get-167605@lists.php.net to get a copy of this message
I had the same problem as bermi ferrer when executing DELETEs. I found that adding an always true WHERE clause returns the number of rows deleted. eg: "DELETE FROM my_table WHERE 1" will delete all the rows and sqlite_changes() will return the correct number of rows deleted. ---- Server IP: 69.147.83.197 Probable Submitter: 58.96.125.238 (proxied: 127.0.0.1) ---- Manual Page -- http://www.php.net/manual/en/function.sqlite-changes.php Edit -- https://master.php.net/note/edit/97094 Del: integrated -- https://master.php.net/note/delete/97094/integrated Del: useless -- https://master.php.net/note/delete/97094/useless Del: bad code -- https://master.php.net/note/delete/97094/bad+code Del: spam -- https://master.php.net/note/delete/97094/spam Del: non-english -- https://master.php.net/note/delete/97094/non-english Del: in docs -- https://master.php.net/note/delete/97094/in+docs Del: other reasons-- https://master.php.net/note/delete/97094 Reject -- https://master.php.net/note/reject/97094 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#167605) next »