Error message

You are browsing documentation for drupal 7.x, which is not supported anymore. Read the updated version of this page for drupal 11.x (the latest version).

function DatabaseConnection::insert

Prepares and returns an INSERT query object.

Parameters

$options: An array of options on the query.

Return value

InsertQuery A new InsertQuery object.

See also

InsertQuery

File

includes/database/database.inc, line 888

Class

DatabaseConnection
Base Database API class.

Code

public function insert($table, array $options = array()) {
 $class = $this->getDriverClass ('InsertQuery', array(
 'query.inc',
 ));
 return new $class($this, $table, $options);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.