Login +

Documentation

SLS_QueryBuilder::havingAnd

Since SillySmart 1.0.7

Description

Specifies having AND for select
public SLS_QueryBuilder havingAnd ( string $where);

Parameters

  • string $where
    the expression where AND for select statment

Return

SLS_QueryBuilder $this
current queryBuilder instance.

Exemples

  •  $qbd->select()
         ->from("news","n")
         ->groupBy(array('news_id'))
         ->having($qbd->expr()->eq('category_id',4))
         ->havingAnd($qbd->expr()->eq('user_id',2))
     // will produce "SELECT * FROM `news` n GROUP BY `news_id` HAVING `category_id` = 4 AND `user_id` = 2"

Comments

No comment on this function, be the first !

Add your comment

You must login/register to post a reply.