public function QueryConditionInterface::exists in Drupal 7
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 includes/
database/ query.inc - Implements QueryConditionInterface::exists().
- DeleteQuery::exists in includes/
database/ query.inc - Implements QueryConditionInterface::exists().
- MergeQuery::exists in includes/
database/ query.inc - Implements QueryConditionInterface::exists().
- SelectQuery::exists in includes/
database/ select.inc - Sets a condition that the specified subquery returns values.
- SelectQueryExtender::exists in includes/
database/ select.inc - Sets a condition that the specified subquery returns values.
File
- 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);