Answers for "python dictionary to sql update"

SQL
0

python dictionary to sql update

fields = self.dictionary.keys()
vals = self.dictionary.values()

stmt = "UPDATE TABLE table_name SET %s = '%s'" %(.join(fields), .join(vals))"
Posted by: Guest on November-10-2021

Code answers related to "python dictionary to sql update"

Code answers related to "SQL"

Browse Popular Code Answers by Language