|
The PDOStatement classIntroductionRepresents a prepared statement and, after the statement is executed, an associated result set. Class synopsis
PDOStatement
implements
IteratorAggregate
/* Properties */
public
string
$queryString;
/* Methods */
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 )Properties
Changelog
|