FetchMode
in package
Contains statement fetch modes.
Table of Contents
- ASSOCIATIVE = PDO::FETCH_ASSOC
- Specifies that the fetch method shall return each row as an array indexed by column name as returned in the corresponding result set. If the result set contains multiple columns with the same name, the statement returns only a single value per column name.
- COLUMN = PDO::FETCH_COLUMN
- Specifies that the fetch method shall return only a single requested column from the next row in the result set.
- CUSTOM_OBJECT = PDO::FETCH_CLASS
- Specifies that the fetch method shall return a new instance of the requested class, mapping the columns to named properties in the class.
- MIXED = PDO::FETCH_BOTH
- Specifies that the fetch method shall return each row as an array indexed by both column name and number as returned in the corresponding result set, starting at column 0.
- NUMERIC = PDO::FETCH_NUM
- Specifies that the fetch method shall return each row as an array indexed by column number as returned in the corresponding result set, starting at column 0.
- STANDARD_OBJECT = PDO::FETCH_OBJ
- Specifies that the fetch method shall return each row as an object with property names that correspond to the column names returned in the result set.
- __construct() : mixed
- This class cannot be instantiated.
Constants
ASSOCIATIVE
Specifies that the fetch method shall return each row as an array indexed by column name as returned in the corresponding result set. If the result set contains multiple columns with the same name, the statement returns only a single value per column name.
public
mixed
ASSOCIATIVE
= PDO::FETCH_ASSOC
Tags
COLUMN
Specifies that the fetch method shall return only a single requested column from the next row in the result set.
public
mixed
COLUMN
= PDO::FETCH_COLUMN
Tags
CUSTOM_OBJECT
Specifies that the fetch method shall return a new instance of the requested class, mapping the columns to named properties in the class.
public
mixed
CUSTOM_OBJECT
= PDO::FETCH_CLASS
Tags
MIXED
Specifies that the fetch method shall return each row as an array indexed by both column name and number as returned in the corresponding result set, starting at column 0.
public
mixed
MIXED
= PDO::FETCH_BOTH
Tags
NUMERIC
Specifies that the fetch method shall return each row as an array indexed by column number as returned in the corresponding result set, starting at column 0.
public
mixed
NUMERIC
= PDO::FETCH_NUM
Tags
STANDARD_OBJECT
Specifies that the fetch method shall return each row as an object with property names that correspond to the column names returned in the result set.
public
mixed
STANDARD_OBJECT
= PDO::FETCH_OBJ
Tags
Methods
__construct()
This class cannot be instantiated.
private
__construct() : mixed