pg_num_fields Возвращает количество полей в выборке &reftitle.description; intpg_num_fields resourceresult pg_num_fields возвращает количество полей (столбцов) в результате запроса PostgreSQL. Ранее функция называлась pg_numfields. &reftitle.parameters; result Ресурс результата запроса PostgreSQL, возвращаемый функциями pg_query, pg_query_params или pg_execute (и прочих). &reftitle.returnvalues; Количество полей (столбцов) в выборке. В случае ошибки возвращает -1. &reftitle.examples; Пример использования <function>pg_num_fields</function> ]]> &example.outputs; &reftitle.seealso; pg_num_rows pg_affected_rows