note 97093 added to function.sqlite-changes
| From: | jazz at funkynerd dot com | Date: | Thu, 01 Apr 2010 05:06:21 +0000 |
| Subject: | note 97093 added to function.sqlite-changes | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-167604@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/97093
Del: integrated -- https://master.php.net/note/delete/97093/integrated
Del: useless -- https://master.php.net/note/delete/97093/useless
Del: bad code -- https://master.php.net/note/delete/97093/bad+code
Del: spam -- https://master.php.net/note/delete/97093/spam
Del: non-english -- https://master.php.net/note/delete/97093/non-english
Del: in docs -- https://master.php.net/note/delete/97093/in+docs
Del: other reasons-- https://master.php.net/note/delete/97093
Reject -- https://master.php.net/note/reject/97093
Search -- https://master.php.net/manage/user-notes.php