DB_common::affectedRows()

DB_common::affectedRows() -- Finds number of rows affected by a data changing query

Synopsis

integer affectedRows ()

Описание

Number of rows affected by a data manipulation query (for example INSERT, UPDATE or DELETE). Returns 0 for SELECT queries.

Возвращаемое значение

integer - number of rows or a DB_Error object on failure

Throws

Таблица 34-1. Возможные значения PEAR_Error

Error codeError messageReasonSolution
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.

Заметка

Эта функция не должна вызываться статически.

Пример

См. также

numRows(), numCols(), query(), execute(), autoExecute(), executeMultiple()


HIVE: All information for read only. Please respect copyright!
Hosted by hive йца: йХЕБЯЙЮЪ ЦНПНДЯЙЮЪ АХАКХНРЕЙЮ