Login +

Documentation

SLS_QueryBuilder::select

Since SillySmart 1.0.7

Description

Start a select query & specifies item(s) to be selected
public SLS_QueryBuilder select ( [ mixed $columns ] );

Parameters

  • mixed $columns
    the columns to select.
     // Can be called with multiple type of parameters and with/without alias
     $qbd->select()
     // Or
     $qbd->select('*')
     // Or
     $qbd->select(array('*'))
     // Or
     $qbd->select('alias.col1','col2',...,'colN')
     // Or
     $qbd->select(array('col1','alias.col2',...,'colN'))
     

Return

SLS_QueryBuilder $this
current queryBuilder instance.

Exemples

  •  $qbd->select("news_id","news_title")
         ->from("news","n")

Comments

No comment on this function, be the first !

Add your comment

You must login/register to post a reply.