public function QueryConditionInterface::exists

7.x query.inc public QueryConditionInterface::exists(SelectQueryInterface $select)

Sets a condition that the specified subquery returns values.

Parameters

SelectQueryInterface $select: The subquery that must contain results.

Return value

QueryConditionInterface The called object.

6 methods override QueryConditionInterface::exists()
DatabaseCondition::exists in drupal/includes/database/query.inc
Implements QueryConditionInterface::exists().
DeleteQuery::exists in drupal/includes/database/query.inc
Implements QueryConditionInterface::exists().
MergeQuery::exists in drupal/includes/database/query.inc
Implements QueryConditionInterface::exists().
SelectQuery::exists in drupal/includes/database/select.inc
Sets a condition that the specified subquery returns values.
SelectQueryExtender::exists in drupal/includes/database/select.inc
Sets a condition that the specified subquery returns values.

... See full list

File

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

Class

QueryConditionInterface
Interface for a conditional clause in a query.

Code

public function exists(SelectQueryInterface $select);