phprs\ezsql\rules\update\UpdateRule::update PHP Method

update() public method

update('table')->set('a', 1) => "UPDATE table SET a=1"
public update ( string $table ) : UpdateSetRule
$table string
return UpdateSetRule
    public function update($table)
    {
        UpdateImpl::update($this->context, $table);
        return new UpdateSetRule($this->context);
    }

Usage Example

Example #1
0
 /**
  * update('table') => "UPDATE table"
  * @param string $table
  * @return \phprs\ezsql\rules\update\UpdateSetRule
  */
 public static function update($table)
 {
     $obj = new UpdateRule(new SqlConetxt());
     return $obj->update($table);
 }
UpdateRule