public function DatabaseCondition::exists in Drupal 7
Implements QueryConditionInterface::exists().
Overrides QueryConditionInterface::exists
File
- includes/
database/ query.inc, line 1761 - 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');
}