MDB_Common::setFetchMode()

MDB_Common::setFetchMode() -- sets the default fetch mode

概要

require_once 'MDB.php';

void setFetchMode (integer $fetchmode, string [$object_class = NULL])

説明

Sets the fetch mode used by default on queries for the connection.

パラメータ

integer $fetchmode

MDB_FETCHMODE_ORDEREDor MDB_FETCHMODE_ASSOC, all possibly bit-wise OR'ed with MDB_FETCHMODE_FLIPPED. See "Introduction - Fetch" for further information.

返り値

void - NULL, if ok(!)

例外・エラー

表 33-1PEAR_Error の値

Error codeError messageReasonSolution
NULL invalid fetchmode mode The given fetch mode does not exists or is not implement in your MDB_Error version. Check writing of the argument and your used version of MDB.

注意

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