ich bin noch ziemlich ungeübt im umgang mit Python, habe bis jetzt nur in PHP gearbeitet. Ich versuche gerade in eine Tabelle zu schreiben aber die Variablen machen mir noch Probleme.
Code: Alles auswählen
cursor = db.cursor()
sql = ("""INSERT INTO %s (uan, email, passwd, ual, uam, uad) VALUES (%s, %s, %s, %s, %s, %s)""" % (uname, uan, email, password, ual, uam, uad))
cursor.execute(sql)
db.close()
- ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '@web.de, xxxxx, 5, 1111111, 1119)' at line 1")
None
Wäre schön wenn mir jemand auf die Sprünge helfen könnte.
Gruß
nathan6