public function QueryConditionInterface::where

public QueryConditionInterface::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.

File

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());

© 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!query.inc/function/QueryConditionInterface::where/7.x