Manuale PHP
Indietro |  | Avanti

# PDO::setAttribute

(no version information, might be only in CVS)

PDO::setAttribute -- Set an attribute

## Description

bool PDO::setAttribute ( int attribute, mixed value )

Sets an attribute on the database handle. Some of the available generic attributes are listed below; some drivers may make use of additional driver specific attributes.

- PDO::ATTR_CASE: Force column names to a specific case.

  - PDO::CASE_LOWER: Force column names to lower case.

  - PDO::CASE_NATURAL: Leave column names as returned by the database driver.

  - PDO::CASE_UPPER: Force column names to upper case.

Indietro | Partenza | Avanti
PDO::rollBack | Risali | PDOStatement::bindColumn