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