导航首页 »  技术教程 »  PHP:pg_num_rows()的用法_PostgreSQL函数
PHP:pg_num_rows()的用法_PostgreSQL函数 1069 2023-12-12   

pg_num_rows

(PHP 4 >= 4.2.0, PHP 5)

pg_num_rows — 返回行的数目

说明

int pg_num_rows ( resource $result )

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

Note:

用 pg_affected_rows() 函数获得被 INSERT,UPDATE 和 DELETE 命令影响到的行的数目。

Note:

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

参见 pg_num_fields() 和 pg_affected_rows()。



文章评论 (0条)
发表评论
暂无评论,快来抢沙发吧~