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 服务器 - 编程 » SQL Anywhere 数据访问 API » SQL Anywhere for Ruby » SQL Anywhere Ruby API

 

sqlany_affected_rows

返回受执行预准备语句影响的行数。

语法
sqlany_affected_rows ( $stmt )
参数
  • $stmt   预准备并成功执行的语句,其中不返回任何结果集。例如,执行了 INSERT、UPDATE 或 DELETE 语句。

返回值

返回标量值(受影响的行数)或返回 -1(失败时)。

另请参见
示例
affected = api.sqlany_affected( stmt )