Name Description Type
PDO::PARAM_BOOL

Represents a boolean data type. integer
PDO::PARAM_NULL Represents the SQL NULL data type. integer
PDO::PARAM_INT Represents the SQL INTEGER data type. integer
PDO::PARAM_STR Represents the SQL CHAR, VARCHAR, or other string data type. integer
PDO::PARAM_LOB  Represents the SQL large object data type. integer
PDO::PARAM_STMT Represents a recordset type. Not currently supported by any drivers. integer
PDO::PARAM_INPUT_OUTPUT Specifies that the parameter is an INOUT parameter for a stored procedure. You must bitwise-OR this value with an explicit PDO::PARAM_* data type. integer
PDO::FETCH_LAZY

Fetch method returns each row as an object with column names as properties returned in the result set. PDO::FETCH_LAZY creates the object variable names as they are accessed. Not valid inside PDOStatement::fetchAll().

integer
PDO::FETCH_ASSOC

Fetch method returns each row as an array indexed by column name in the result set. If there are multiple columns with same name in the result set PDO::FETCH_ASSOC returns only a single value per column name.

integer
PDO::FETCH_NAMED

Fetch method returns each row as an array indexed by both column name in the returned result set starting at column 0. If the result set contains multiple columns with the same name, PDO::FETCH_NAMED returns an array of values per column name.

integer
PDO::FETCH_NUM 

Fetch method returns each row as an array indexed by both column number in the returned result set starting at column 0.

integer
PDO::FETCH_BOTH

Fetch method returns each row as an array indexed by both column name and number in the returned result set starting at column 0.

integer
PDO::FETCH_OBJ

Fetch method returns each row as an object with property names that correspond to the column names returned in the result.

integer
PDO::FETCH_BOUND Specifies that the fetch method shall return TRUE and assign the values of the columns in the result set to the PHP variables to which they were bound with the PDOStatement::bindParam() or PDOStatement::bindColumn() methods. integer
PDO::FETCH_COLUMN  Specifies that the fetch method shall return only a single requested column from the next row in the result set. integer
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. integer
PDO::FETCH_INTO  Specifies that the fetch method shall update an existing instance of the requested class, mapping the columns to named properties in the class. integer
PDO::FETCH_FUNC Allows completely customize the way data is treated on the fly (only valid inside PDOStatement::fetchAll()). integer
PDO::FETCH_GROUP Group return by values. Usually combined with PDO::FETCH_COLUMN or PDO::FETCH_KEY_PAIR. integer
PDO::FETCH_UNIQUE Fetch only the unique values. integer
PDO::FETCH_KEY_PAIR Fetch a two-column result into an array where the first column is a key and the second column is the value. Available since PHP 5.2.3. integer
PDO::FETCH_CLASSTYPE Determine the class name from the value of first column. integer
PDO::FETCH_SERIALIZE As PDO::FETCH_INTO but object is provided as a serialized string. Available since PHP 5.1.0. Since PHP 5.3.0 the class constructor is never called if this flag is set. integer
PDO::FETCH_PROPS_LATE Call the constructor before setting properties. Available since PHP 5.2.0. integer
PDO::ATTR_AUTOCOMMIT If this value is FALSE, PDO attempts to disable autocommit so that the connection begins a transaction. integer
PDO::ATTR_PREFETCH Setting the prefetch size allows you to balance speed against memory usage for your application. Not all database/driver combinations support setting of the prefetch size. A larger prefetch size results in increased performance at the cost of higher memory usage. integer
PDO::ATTR_TIMEOUT Sets the timeout value in seconds for communications with the database. integer
PDO::ATTR_ERRMODE See the Errors and error handling section for more information about this attribute. integer
PDO::ATTR_SERVER_VERSION This is a read only attribute; it will return information about the version of the database server to which PDO is connected. integer
PDO::ATTR_CLIENT_VERSION This is a read only attribute; it will return information about the version of the client libraries that the PDO driver is using. integer
PDO::ATTR_SERVER_INFO This is a read only attribute; it will return some meta information about the database server to which PDO is connected. integer
PDO::ATTR_CURSOR_CASE Force column names to a specific case specified by the PDO::CASE_* constants. integer
PDO::ATTR_CURSOR_NAME Get or set the name to use for a cursor. Most useful when using scrollable cursors and positioned updates. integer
PDO::ATTR_CURSOR  Selects the cursor type. PDO currently supports either PDO::CURSOR_FWDONLY and PDO::CURSOR_SCROLL. Stick with PDO::CURSOR_FWDONLY unless you know that you need a scrollable cursor. integer
PDO::ATTR_DRIVER_NAME Returns the name of the driver. string
PDO::ATTR_ORACLE_NULLS Convert empty strings to SQL NULL values on data fetches. integer
PDO::ATTR_PERSISTENT Request a persistent connection, rather than creating a new connection. See Connections and Connection management for more information on this attribute. integer
PDO::ATTR_FETCH_TABLE_NAMES Prepend the containing table name to each column name returned in the result set. integer
PDO::ATTR_FETCH_CATALOG_NAMES Prepend the containing catalog name to each column name returned in the result set. The catalog name and column name are separated by a decimal (.) character. Support of this attribute is at the driver level; it may not be supported by your driver. integer
PDO::ERRMODE_SILENT  Do not raise an error or exception if an error occurs. integer
PDO::ERRMODE_WARNING  Issue a PHP E_WARNING message if an error occurs integer
PDO::ERRMODE_EXCEPTION  Throw a PDOException if an error occurs. See Errors and error handling for more information about this attribute. integer
PDO::CASE_NATURAL Leave column names as returned by the database driver. integer
PDO::CASE_LOWER Force column names to lower case. integer
PDO::CASE_UPPER  Force column names to upper case. integer
PDO::NULL_NATURAL, PDO::NULL_EMPTY_STRING, PDO::NULL_TO_STRING, PDO::FETCH_ORI_NEXT  Fetch the next row in the result set. integer
PDO::FETCH_ORI_PRIOR Fetch the previous row in the result set. integer
PDO::FETCH_ORI_FIRST Fetch the first row in the result set. integer
PDO::FETCH_ORI_LAST Fetch the last row in the result set. Valid only for scrollable cursors. integer
PDO::FETCH_ORI_ABS  Fetch the requested row by row number from the result set. Valid only for scrollable cursors. integer
PDO::FETCH_ORI_REL Fetch the requested row by relative position from the current position of the cursor in the result set. Valid only for scrollable cursors. integer
PDO::CURSOR_FWDONLY Create a PDOStatement object with a forward-only cursor. This is the default cursor choice, as it is the fastest and most common data access pattern in PHP. integer
PDO::CURSOR_SCROLL Create a PDOStatement object with a scrollable cursor. Pass the PDO::FETCH_ORI_* constants to control the rows fetched from the result set. integer
PDO::ERR_NONE Corresponds to SQLSTATE '00000', meaning that the SQL statement was successfully issued with no errors or warnings. This constant is for your convenience when checking PDO::errorCode() or PDOStatement::errorCode() to determine if an error occurred. You will usually know if this is the case by examining the return code from the method that raised the error condition anyway. integer
PDO::PARAM_EVT_ALLOC Allocation event integer
PDO::PARAM_EVT_FREE Deallocation event integer
PDO::PARAM_EVT_EXEC_PRE Event triggered prior to execution of a prepared statement. integer
PDO::PARAM_EVT_EXEC_POST Event triggered subsequent to execution of a prepared statement. integer
PDO::PARAM_EVT_FETCH_PRE Event triggered prior to fetching a result from a resultset. integer
PDO::PARAM_EVT_FETCH_POST Event triggered subsequent to fetching a result from a resultset. integer
PDO::PARAM_EVT_NORMALIZE Event triggered during bound parameter registration allowing the driver to normalize the parameter name. integer

Reference : PHP Manual