my $sql='UPDATE table SET '.join',',map {"$_=".quote($hash{$_})} keys %hash;