public function SelectQuery::exists

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

Archivo

drupal-7.x/includes/database/select.inc, line 1062

Class

SelectQuery
Query builder for SELECT statements.

Código

public function exists(SelectQueryInterface $select) {
  $this->where->exists($select);
  return $this;
}