PHP  
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  
<pg_meta_datapg_num_rows>
Last updated: Mon, 16 Jul 2012

pg_num_fields

(PHP 4 >= 4.2.0, PHP 5)

pg_num_fields -- 返回字段的数目

说明

int pg_num_fields ( resource result )

pg_num_fields() 返回 PostgreSQL result 中的字段(列)数目。参数是由 pg_query() 函数返回的查询结果资源号。如果出错则返回 -1。

注: 本函数以前的名字为 pg_numfields()

参见 pg_num_rows()pg_affected_rows()




<pg_meta_datapg_num_rows>
 Last updated: Mon, 16 Jul 2012
 
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: http://manual.phpv.net/
Last updated: Thu Jul 7 19:13:47 2005 CST