1 database.inc | public DatabaseConnection::update($table, array $options = array()) |
Prepares and returns an UPDATE query object.
Parameters
string $table: The table into which data will be updated.
array $options: An array of options on the query.
Return value
UpdateQuery: A new UpdateQuery object.
See also
File
- core/
includes/ database/ database.inc, line 930 - Core systems for the database layer.
Class
- DatabaseConnection
- Base Database API class.
Code
public function update($table, array $options = array()) {
$class = $this->getDriverClass('UpdateQuery', array('query.inc'));
return new $class($this, $table, $options);
}