PDOStatement クラスはじめにプリペアドステートメントを表します。ステートメント実行後は関連する結果セットを表します。 クラス概要
PDOStatement
implements
IteratorAggregate
/* プロパティ */
public
string
$queryString;
/* メソッド */
public bool bindColumn(
stringint $column,mixed &$var,int $type = PDO::PARAM_STR,int $maxLength = 0,mixed $driverOptions = null) public bool bindParam(
stringint $param,mixed &$var,int $type = PDO::PARAM_STR,int $maxLength = 0,mixed $driverOptions = null) public bool bindValue(stringint
$param, mixed $value, int $type = PDO::PARAM_STR)public bool closeCursor()
public int columnCount()
public boolnull debugDumpParams()
public stringnull errorCode()
public array errorInfo()
public bool execute(arraynull
$params = null)public mixed fetch(int
$mode = PDO::FETCH_DEFAULT, int $cursorOrientation = PDO::FETCH_ORI_NEXT, int $cursorOffset = 0)public array fetchAll(int
$mode = PDO::FETCH_DEFAULT)public array fetchAll(int
$mode = PDO::FETCH_COLUMN, int $column)public array fetchAll(int
$mode = PDO::FETCH_CLASS, string $class, arraynull $constructorArgs)public array fetchAll(int
$mode = PDO::FETCH_FUNC, callable $callback)public mixed fetchColumn(int
$column = 0)public objectfalse fetchObject(stringnull
$class = "stdClass", array $constructorArgs = [])public mixed getAttribute(int
$name)public arrayfalse getColumnMeta(int
$column)public Iterator getIterator()
public bool nextRowset()
public int rowCount()
public bool setAttribute(int
$attribute, mixed $value)public bool setFetchMode(int
$mode)public bool setFetchMode(int
$mode = PDO::FETCH_COLUMN, int $colno)public bool setFetchMode(int
$mode = PDO::FETCH_CLASS, string $class, arraynull $constructorArgs = null)public bool setFetchMode(int
$mode = PDO::FETCH_INTO, object $object)プロパティ
変更履歴
|