I am learning to use MySQL Connector/Python. In most of the tutorials, I see they use the %s placeholder inside VALUES clause for inserting data in a table. Then, on the next line, the values are stored in a tuple. And then, they execute the command.
sql = "INSERT INTO table (col1, col2) VALUES (%s, %s)"
val = ("Foo", "Bar")
cursor.execute(sql, val)
So what does this %s mean? Is it the same as the one used in C? I saw people using this in C. I am just curious. Please do give any reference link, if any. Thanks.