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 PHP API » SQL Anywhere PHP API リファレンス

 

sasql_stmt_num_rows

プロトタイプ
int sasql_stmt_num_rows( sasql_stmt $stmt )
説明

結果セット内のロー数を返します。結果セット内の実際のロー数は、sasql_stmt_store_result 関数が呼び出されて結果セット全体がバッファに格納された後でのみ特定できます。sasql_stmt_store_result 関数が呼び出されなかった場合は 0 が返されます。

パラメータ

$stmt   sasql_stmt_execute によって実行され、sasql_stmt_store_result が呼び出された文リソース。

戻り値

結果で使用できるロー数。失敗した場合は 0。

関連する関数