DbSql::Update PHP Method

Update() public method

构造数据更新语句
public Update ( string $table, string $keyvalue, string $where, array | null $option = null ) : string
$table string
$keyvalue string
$where string
$option array | null
return string 返回构造的语句
    public function Update($table, $keyvalue, $where, $option = null)
    {
        return $this->get()->update($table)->data($keyvalue)->where($where)->option($option)->sql;
    }