cubrid_affected_rows(PECL CUBRID >= 8.3.0) cubrid_affected_rows — Return the number of rows affected by the last SQL statement Описание
int cubrid_affected_rows
([ resource $result
] )
The cubrid_affected_rows() function is used to get the number of rows affected by the SQL statement (INSERT, DELETE, UPDATE). Список параметров
Возвращаемые значенияNumber of rows affected by the SQL statement, when process is successful. -1, when SQL statement is not INSERT, DELETE or UPDATE. FALSE, when the request identifier is not specified, and there is no last request. ПримерыПример #1 cubrid_affected_rows() example
<?phpРезультат выполнения данного примера: Rows deleted: 5 |
||