Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 » SQL Anywhere Server - Programming » SQL Anywhere Data Access APIs » SQL Anywhere for Ruby » SQL Anywhere Ruby API

 

sqlany_affected_rows

Returns the number of rows affected by execution of the prepared statement.

Syntax
sqlany_affected_rows ( $stmt )
Parameters
  • $stmt   A statement that was prepared and executed successfully in which no result set was returned. For example, an INSERT, UPDATE or DELETE statement was executed.

Returns

Returns a scalar value that is the number of rows affected, or -1 on failure.

See also
Example
affected = api.sqlany_affected( stmt )