MDB_Common::fetchAll() (Previous) (Next) MDB_Common::fetchOne()

View this page in Last updated: Sun, 07 Sep 2008
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

MDB_Common::fetchCol()

MDB_Common::fetchCol() -- 結果の単一のカラムを取得する

説明

結果セットから単一のカラムを取得し、結果セットを開放します。

パラメータ

resource $result

query() あるいは executeQuery() が返した有効なリソース。

array $params

指定された場合、 prepareQuery()/ executeQuery() はこの配列を実行時のパラメータとして使用します。

mixed $colnum

どのカラムを返すか (整数値 [0 から始まるカラム番号] あるいは文字列 [カラム名])。

返り値

array - 結果の最初の行を、 ゼロから始まる数値添字の配列で返します。失敗した場合は MDB_Error を返します。

注意

この関数は、スタティックにコールする ことはできません。

MDB_Common::fetchAll() (Previous) (Next) MDB_Common::fetchOne()

Download Documentation Last updated: Sun, 07 Sep 2008
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.