Answer the question
In order to leave comments, you need to log in
Error in sql query with text with dot?
conn = pymysql.connect(host=host, port=port, user=user, passwd=password, db=mydb)
cursor = conn.cursor()
cursor.execute("INSERT IGNORE INTO 'users' ('username', 'password', 'email') VALUES (%s, %s, %s)", (usernamee, passwordd, emaill))
conn.commit()
(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 ''users' ('username', 'password', 'email') VALUES ('Dex', 'Dexx', '[email protected]' at line 1")
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