public function InsertQuery::from

cis7 query.inc public InsertQuery::from(SelectQueryInterface $query)
cle7 query.inc public InsertQuery::from(SelectQueryInterface $query)
elmsmedia7 query.inc public InsertQuery::from(SelectQueryInterface $query)
icor7 query.inc public InsertQuery::from(SelectQueryInterface $query)
meedjum_blog7 query.inc public InsertQuery::from(SelectQueryInterface $query)
mooc7 query.inc public InsertQuery::from(SelectQueryInterface $query)

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
Non-specific Database query code. Used by all engines.

Class

InsertQuery
General class for an abstracted INSERT query.

Code

public function from(SelectQueryInterface $query) {
  $this->fromQuery = $query;
  return $this;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.