having("COUNT(id) = $count"); * * // secure * $select->having('COUNT(id) = ?', $count); * * // equivalent security with named binding * $select->having('COUNT(id) = :count'); * $select->bind('count', $count); * }} * * @param string $cond The HAVING condition. * * @return $this * */ public function having($cond); /** * * Adds a HAVING condition to the query by AND; otherwise identical to * `having()`. * * @param string $cond The HAVING condition. * * @return $this * * @see having() * */ public function orHaving($cond); /** * * Sets the limit and count by page number. * * @param int $page Limit results to this page number. * * @return $this * */ public function page($page); /** * * Takes the current select properties and retains them, then sets * UNION for the next set of properties. * * @return $this * */ public function union(); /** * * Takes the current select properties and retains them, then sets * UNION ALL for the next set of properties. * * @return $this * */ public function unionAll(); }