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

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() 来取得更好的错误处理。

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

参见 pg_result_error()




<pg_insertpg_last_notice>
 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