DB_common::affectedRows()
Описание
Number of rows affected by a data manipulation query (for example INSERT, UPDATE or DELETE). Returns 0 for SELECT queries.
Throws
Таблица 35-1. Возможные значения PEAR_Error
Error code | Error message | Reason | Solution |
---|---|---|---|
DB_ERROR_NOT_CAPABLE | DB backend not capable | Function is not supported by the database backend | Switch to another database system, if you really need this feature. |
Пример
Пример 35-1. Using affectedRows()
|
Пред. | Начало | След. |
DB_common | Уровень выше | DB_common::autoCommit() |