Login +

Documentation

SLS_QueryBuilder::groupBy

Since SillySmart 1.0.7

Description

Specifies item(s) to be grouped
public SLS_QueryBuilder groupBy ( mixed $columns);

Parameters

  • mixed $columns
    the columns to group.
     // Can be called with multiple type of parameters and with/without alias
     $qbd->select()
         ->from("news","n")
         ->groupBy(array('news_id'))
     // Or
     $qbd->select()
         ->from("news","n")
         ->groupBy('n.news_id','category_id',...,'user_id')
     // Or
     * $qbd->select()
         ->from("news","n")
         ->groupBy(array('n.news_id','n.category_id',...,'user_id'))
     

Return

SLS_QueryBuilder $this
current queryBuilder instance.
No exemples.

Comments

No comment on this function, be the first !

Add your comment

You must login/register to post a reply.