function InsertQuery::from
Sets the fromQuery on this InsertQuery object.
Parameters
SelectQueryInterface $query: The query to fetch the rows that should be inserted.
Return value
InsertQuery The called object.
File
-
includes/
database/ query.inc, line 605
Class
- InsertQuery
- General class for an abstracted INSERT query.
Code
public function from(SelectQueryInterface $query) {
$this->fromQuery = $query;
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.