I’m having trouble calling this SQL command, I am getting: ‘OperationalError: near “‘0-0′”: syntax error’
My call is as follows:
users_db_curs.execute("INSERT INTO `"+table_name+"` (uID, username, password, creator_exp, location)
VALUES ('"+user_ID+"', '"+username+"', '"+password+"', '"+creator_exp+"', '0-0')")
I tested your statement and it should work fine if your different variables are correctly formatted to be directly concatenated in the statement string litteral:
It’s probably not the case when you get that
syntax error:So just use formatted parameters instead.