1 query.inc | public DatabaseCondition::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.
Overrides QueryConditionInterface::exists
File
- core/
includes/ database/ query.inc, line 1824 - Non-specific Database query code. Used by all engines.
Class
- DatabaseCondition
- Generic class for a series of conditions in a query.
Code
public function exists(SelectQueryInterface $select) {
return $this->condition('', $select, 'EXISTS');
}