(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 '')' at line 1")
I do not understand why "')" chucks an error
I have tried substituting the values of the query in multiple different ways
and they all route back to that.
Any help would be greatly appreciated.
query in question:
sql = "INSERT INTO Teams VALUES (%s, %s)"
cursor.execute(sql, (self.varTeamID, self.varTeamName))
alternate attempts chucking same error:
sql = "INSERT INTO Teams VALUES (" + self.varTeamID + ", '" + self.varTeamName + "')"
Please note that the query works and is added to the database however python thinks it is wrong crashing the program
We found it, this statement was working fine, the error was actually in the next SQL statement just after this one.
SQL query is added to DB but thinks it is wrong crashing the python program