Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
返回结果集中的列数。
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 )