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

pg_last_error

(PHP 4 >= 4.2.0, PHP 5)

pg_last_error — 得到某连接的最后一条错误信息

说明

string pg_last_error ([ resource $connection ] )

pg_last_error() 返回指定连接 connection 的最后一条错误信息。

错误信息可能会被 PostgreSQL(libpq) 的内部函数调用所覆盖。如果 PostgreSQL 的内部模块函数产生了多个错误,则可能不能返回适当的错误信息。

使用 pg_result_error(),pg_result_status() 和 pg_connection_status() 来取得更好的错误处理。

Note:

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

参见 pg_result_error()。


!!!站长长期在线接!!!

网站、小程序:定制开发/二次开发/仿制开发等

各种疑难杂症解决/定制接口/定制采集等

站长微信:lxwl520520

站长QQ:1737366103