pg_NumRows

pg_NumRows -- 行数を返す

説明

int pg_numrows(int result_id);

pg_NumRows() は PostgreSQL の結果における行数を返します。 引数は、pg_Execで返された、有効な結果 ID です。この関数は、エラーの場合 -1 を返します。