Login +

Documentation

SLS_QueryBuilder::set

Since SillySmart 1.0.7

Description

Specifies set for update statment
public SLS_QueryBuilder set ( mixed $set);

Parameters

  • mixed $set
    expressions to set.
     // Can be called with multiple type of parameters and with/without alias
     $qbd->update()
         ->from("news","n")
         ->set($qbd->expr()->eq('news_title','title updated'))
     // Or
     $qbd->update()
         ->from("news","n")
         ->set($qbd->expr()->eq('news_title','title updated'),$qbd->expr()->eq('news_updated','1'))
     // Or
     * $qbd->update()
         ->from("news","n")
         ->set(array($qbd->expr()->eq('news_title','title updated'),$qbd->expr()->eq('news_updated','1')))
     

Return

SLS_QueryBuilder $this
current queryBuilder instance.

Exemples

  •  $qbd->update()
         ->from("news","n")
         ->set($qbd->expr()->eq('news_title','title updated')))

Comments

No comment on this function, be the first !

Add your comment

You must login/register to post a reply.