pg_NumRows

pg_NumRows -- 行数を返す

説明

int pg_numrows(int result_id);

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