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

search for in the

ingres_error> <ingres_cursor
Last updated: Fri, 05 Sep 2008

view this page in

ingres_errno

(PECL ingres:1.1-1.4.3)

ingres_errno直近に発生した ingres エラー番号を取得する

説明

int ingres_errno ([ resource $link ] )

直近のエラー番号を整数値で返します。エラーが発生していない場合は 0 を返します。

link リソースが ingres_errno() に渡された場合、そのリンクに記録された直近のエラーを返します。 リンクが渡されなかった場合、ingres_errno() はデフォルトのリンクを使用して直近のエラーを返します。

この関数 ingres_errno() は、 データベースクエリを実行した直後にコールしなければなりません。 ingres_errno() の前に他の関数がコールされると、 直近の Ingres 関数のコールで発生したエラーコードが書き換えられてしまいます。

パラメータ

link

接続リンク ID。省略した場合は、最後にオープンしたリンクを使用します。

返り値

直近のエラー番号を整数値で返します。エラーが発生していない場合は 0 を返します。

例1 ingres_errno() の例

<?php
$link 
ingres_connect($database$user$password);

ingres_query("select * from table"$link);

$error_code ingres_errno($link);

if ( 
$error_code != ) {
   echo 
"エラーが発生しました - " $error_code;
}
?>



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

ingres_error> <ingres_cursor
Last updated: Fri, 05 Sep 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites