Login +

Documentation

SLS_QueryBuilder::limit

Since SillySmart 1.0.7

Description

Specifies limit for select, update or delete statment
public SLS_QueryBuilder limit ( string $start, [ string $length ] );

Parameters

  • string $start
    start offset if length is set, else number of wanted recordsets
  • string $length
    number of wanted recordsets

Return

SLS_QueryBuilder $this
current queryBuilder instance.

Exemples

  •  $qbd->select()
         ->from("news","n")
         ->limit(5)
     // will produce "SELECT * FROM `news` n LIMIT 5"
     $qbd->select()
         ->from("news","n")
         ->limit(10,5)
     // will produce "SELECT * FROM `news` n LIMIT 10,5"

Comments

No comment on this function, be the first !

Add your comment

You must login/register to post a reply.