Returns number of columns in the result set.
sqlany_num_cols ( $stmt )
$stmt A statement object executed by sqlany_execute or sqlany_execute_direct.
Returns a scalar value that is the number of columns in the result set, or -1 on a failure.
stmt = api.sqlany_execute_direct( conn, "SELECT * FROM Employees" ) # Get number of result set columns num_cols = api.sqlany_num_cols( stmt ) |
Discuss this page in DocCommentXchange. Send feedback about this page using email. |
Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1 |