I am trying to use placeholder in an insert-statement.
I am using PyCharm/Python 3.6, a MySQL-Database, and the mysql.connector (don't know which of them exactly.)
Why doesn't the following code work?
insert_stmt = "INSERT INTO mydb.datensatz (Titel) VALUES ('%s');"
data = (titel)
cursor.execute(insert_stmt, data)
cnx.commit()
titel is a string.
This is what gets inserted, but I need to have the titel-string into that row.

When deleting the ' ' in the values-braces, PyCharm gives me an error with incorrect MySQL-syntax.
How to use placeholders in this case? How could I use more placeholders for example at inserting into more columns than one? Research didn't help.

''s around the%s... I just looked up PyCharm, is it just an IDE "intellisense-style error", or does it actually refuse to run the query?