public function QueryConditionInterface::where

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.

6 methods override QueryConditionInterface::where()
DatabaseCondition::where in drupal/includes/database/query.inc
Implements QueryConditionInterface::where().
DeleteQuery::where in drupal/includes/database/query.inc
Implements QueryConditionInterface::where().
MergeQuery::where in drupal/includes/database/query.inc
Implements QueryConditionInterface::where().
SelectQuery::where in drupal/includes/database/select.inc
Adds an arbitrary WHERE clause to the query.
SelectQueryExtender::where in drupal/includes/database/select.inc
Adds an arbitrary WHERE clause to the query.

... See full list

File

drupal/includes/database/query.inc, line 60
Non-specific Database query code. Used by all engines.

Class

QueryConditionInterface
Interface for a conditional clause in a query.

Code

public function where($snippet, $args = array());