class FetchMode (View source)

Contains statement fetch modes.

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.

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.

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.

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.

COLUMN

Specifies that the fetch method shall return only a single requested column from the next row in the result set.

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.