Login +

Documentation

SLS_QueryBuilder::whereAnd

Since SillySmart 1.0.7

Description

Specifies where AND for select, update or delete statment
public SLS_QueryBuilder whereAnd ( [ string $where ] );

Parameters

  • string $where
    the expression where AND for select, update or delete statment

Return

SLS_QueryBuilder $this
current queryBuilder instance.

Exemples

  •  $qbd->select()
         ->from("news","n")
         ->where($qbd->expr()->eq('category_id',4))
         ->whereAnd($qbd->expr()->eq('user_id',2))
     // will produce "SELECT * FROM `news` n WHERE `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.