SelectQuery::where
public function SelectQuery::where
public SelectQuery::where($snippet, $args = array())
Adds an arbitrary WHERE clause to the query.
Parameters
$snippet: A portion of a WHERE clause as a prepared statement. It must use named placeholders, not ? placeholders.
$args: An associative array of arguments.
Return value
QueryConditionInterface The called object.
Overrides QueryConditionInterface::where
File
- includes/database/select.inc, line 1048
Class
- SelectQuery
- Query builder for SELECT statements.
Code
public function where($snippet, $args = array()) { $this->where->where($snippet, $args); return $this; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!database!select.inc/function/SelectQuery::where/7.x