function SelectQuery_pgsql::orderRandom
Overrides SelectQuery::orderRandom
File
-
includes/
database/ pgsql/ select.inc, line 15
Class
Code
public function orderRandom() {
$alias = $this->addExpression('RANDOM()', 'random_field');
$this->orderBy($alias);
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.