cubrid_affected_rows

PECL CUBRID >= 8.3.0
cubrid_affected_rows - Return the number of rows affected by the last SQL statement
Manual
Code Examples

cubrid_affected_rows( [resource$conn_identifier] ): int
intcubrid_affected_rows resourcereq_identifier

Parameters

conn_identifier

The CUBRID connection. If the connection identifier is not specified, the last link opend by cubrid_connect is assumed.

req_identifier

Request Identifier, could be returned from either cubrid_prepare or cubrid_execute. If the request identifier is not specified, the last identifier requested by cubrid_prepare or cubrid_execute is assumed.

Return Values

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.

Related Functions

Example of cubrid_affected_rows

Show all examples for cubrid_affected_rows

PHP Version:


Function cubrid_affected_rows:

CUBRID Functions

Most used PHP functions