previousMDB_Common::fetchCol() (Previous) (Next) MDB_Common::fetchRow()next

View this page in Last updated: Sun, 21 Jun 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

MDB_Common::fetchOne()

MDB_Common::fetchOne() – 結果の最初の行の最初のカラムを取得する

Synopsis

require_once 'MDB.php';

mixed &fetchOne ( resource $result )

Description

結果セットから最初の行の最初のカラムの値を取得し、結果セットを開放します。

Parameter

resource $result

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

Return value

mixed - 返された値、あるいは失敗した場合に MDB_Error を返します。

Throws

Possible PEAR_Error values
エラーコード エラーメッセージ 原因 対応
その他のすべてのエラーコード   データベース固有のエラー PHP マニュアル のデータベース関連の章で、エラーの意味を調べます。 たいていの場合は SQL の文法が間違っていることが原因です。 たとえば Oracle データベースの SQL 文で LIMIT を使用していることなどです。

Note

This function can not be called statically.

previousMDB_Common::fetchCol() (Previous) (Next) MDB_Common::fetchRow()next

Download Documentation Last updated: Sun, 21 Jun 2009
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.