CHAPTER 6 – PEAR DB – Count Deleted Rows

Option: DB_PORTABILITY_DELETE_COUNT Some DBMSs, such as MySQL and SQLite, store tables in a single file, and deleting all the rows in the table is simply a matter of truncating the file. This is fast, but you will not know how many rows were deleted. This option fixes that, but makes such deletes slower. In MySQL 4, this has been fixed so you do not need this option if you use MySQL 4.0 or newer.

Post Comment
Login to post comments