Answer the question
In order to leave comments, you need to log in
How to update data by column name?
Hello ! Is there any way to update the value by column name?
or at least by its row.keys
await db2.execute("UPDATE inv SET {} = {} - 1 WHERE id = {}".format(str(names[item]) , str(names[item]) , ctx.author.id))
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question