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 )