note 97094 modified in function.sqlite-changes by danbrown

From: Date: Thu, 01 Apr 2010 13:41:17 +0000
Subject: note 97094 modified in function.sqlite-changes by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-167623@lists.php.net to get a copy of this message
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. --was-- 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. http://php.net/manual/en/function.sqlite-changes.php

« previous php.notes (#167623) next »