downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

db2_stmt_errormsg> <db2_statistics
Last updated: Fri, 06 Nov 2009

view this page in

db2_stmt_error

(PECL ibm_db2 >= 1.0.0)

db2_stmt_error SQL 文が返す SQLSTATE を含む文字列を返す

説明

string db2_stmt_error ([ resource $stmt ] )

SQL 文が返す SQLSTATE を含む文字列を返します。

db2_stmt_error() の引数にステートメントリソースを 渡さなかった場合は、直近で (例えば db2_prepare() あるいは db2_exec() を使用して) 返そうとしたステートメントリソースに関連する SQLSTATE を返します。

SQLSTATE の値の意味を調べるには、DB2 コマンドラインプロセッサのプロンプトで 次のコマンドを発行します。 db2 '? sqlstate-value ' また、db2_stmt_errormsg() をコールして、 明示的なエラーメッセージと、それに関連する SQLCODE の値を取得することも可能です。

パラメータ

stmt

有効なステートメントリソース。

返り値

SQLSTATE を含む文字列を返します。

参考

  • db2_conn_error() - 直近の接続から返された SQLSTATE を含む文字列を返す
  • db2_conn_errormsg() - 直近の接続エラーメッセージおよび SQLCODE を返す
  • db2_stmt_errormsg() - 直近の SQL 文のエラーメッセージを含む文字列を返す



add a note add a note User Contributed Notes
db2_stmt_error
There are no user contributed notes for this page.

db2_stmt_errormsg> <db2_statistics
Last updated: Fri, 06 Nov 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites