Login +

Documentation

SLS_QueryBuilder::having

Since SillySmart 1.0.7

Description

Specifies having for select
public SLS_QueryBuilder having ( string $having);

Parameters

  • string $having
    the expression having for select statment

Return

SLS_QueryBuilder $this
current queryBuilder instance.

Exemples

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

Comments

No comment on this function, be the first !

Add your comment

You must login/register to post a reply.