PDOStatement::setAttribute
PDOStatement::setAttribute — Sets a statement attribute (PHP 5 >= 5.1.0, PECL pdo >= 0.2.0)
Description
Syntax
bool PDOStatement::setAttribute ( int $attribute , mixed $value )
Sets an attribute on the statement. Currently, there are no generic attributes that can be set, only driver-specific attributes:
PDO::ATTR_CURSOR_NAME(Firebird and ODBC specific):UPDATE ... WHERE CURRENT OFSets the cursor name.
Return Value
Returns TRUE on success, or FALSE on failure.
Other Extensions
PHP PDO Reference Manual