PDOStatement::setAttribute
PDOStatement::setAttribute — Set 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 to set, only driver-specific ones:
-
PDO::ATTR_CURSOR_NAME (Firebird and ODBC attribute): For UPDATE ... WHERE CURRENT OF Set the cursor name.
Return Value
Returns TRUE on success, or FALSE on failure.
PHP PDO Reference Manual