Answer the question
In order to leave comments, you need to log in
Psycopg2.errors.SyntaxError: syntax error at or near "M5BSJAV6AY"?
I'm trying to write a random string to a JSON cell
hash = ''.join(random.choices(string.ascii_uppercase + string.digits, k = 10))
cursor.execute("""UPDATE settings SET register = '{"value":"enabled", "link": %s}' WHERE worker=%s""", [hash, 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