返回结果集中的列数。
sqlany_num_cols ( $stmt )
$stmt 由 sqlany_execute 或 sqlany_execute_direct 执行的语句对象。
返回标量值,即结果集中的列数或 -1(失败时)。
stmt = api.sqlany_execute_direct( conn, "SELECT * FROM Employees" ) # Get number of result set columns num_cols = api.sqlany_num_cols( stmt ) |
Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1 |