pg_result_error

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

pg_result_error 獲得查詢結(jié)果的錯誤信息

說明

pg_result_error(resource $result): string

pg_result_error() 返回和 result 資源關(guān)聯(lián)的錯誤信息。因此用戶更有機會可以得到比 pg_last_error() 更好的錯誤信息。

參見 pg_query(),pg_send_query()pg_get_result(),pg_last_error()pg_last_notice()。