编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « pg_meta_data
  • pg_num_rows »
  • PHP Manual
  • PostgreSQL 函数
  • 返回字段的数目

pg_num_fields

(PHP 4 >= 4.2.0, PHP 5, PHP 7)

pg_num_fields — 返回字段的数目

说明

pg_num_fields ( resource $result ) : int

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

Note:

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

参见 pg_num_rows() 和 pg_affected_rows()。

相关文章
php mysql 函数 返回指定字段的长度php mysql 函数 取得结果集中字段的数目php oci8 函数 返回字段精度php oci8 函数 返回字段范围php oci8 函数 返回字段大小php oci8 函数 返回结果列的数目php postgresql 函数 返回受影响的记录数目php postgresql 函数 从结果资源中返回值php postgresql 函数 测试字段是否为 nullphp postgresql 函数 返回字段的名字php postgresql 函数 返回字段的编号php postgresql 函数 返回指定字段占用内部存储空间的大小php postgresql 函数 返回相应字段的类型名称php postgresql 函数 返回和某连接关联的主机名php postgresql 函数 返回 postgresql 服务器最新一条公告信息php postgresql 函数 返回大型对象的当前指针位置php postgresql 函数 返回字段的数目php postgresql 函数 返回行的数目php postgresql 函数 返回该连接的端口号php postgresql 函数 返回该连接的 tty 号
关注编程学问公众号
编程学问网 湘ICP备20001732号