phprs\ezsql\impls\WhereImpl::havingArgs PHP Method

havingArgs() public static method

public static havingArgs ( $context, $args )
    public static function havingArgs($context, $args)
    {
        self::conditionArgs($context, 'HAVING', $args);
    }

Usage Example

Example #1
0
 /**
  * 
  * havingArgs([
  *      'a'=>1, 
  *      'b'=>['IN'=>[1,2]]
  *      'c'=>['BETWEEN'=>[1,2]]
  *      'd'=>['<>'=>1]
  *      ])
  *      
  *      =>
  *      "HAVING a=1 AND b IN(1,2) AND c BETWEEN 1 AND 2 AND d<>1"
  *      
  *      
  * @param array $args
  * @return \phprs\ezsql\rules\select\OrderByRule
  */
 public function havingArgs($args)
 {
     WhereImpl::havingArgs($this->context, $args);
     return new OrderByRule($this->context);
 }