Skip to content
Advertisement

mysql connector with python formating

I wrote a simple script that shows the user a letter and he has to write a human name that starts with the same letter, but I am having a problem automatically compensating for the column name using a variable… Is there a suggestion?

How do I replace the column name with the variable let?

JavaScript

The error:

JavaScript

Advertisement

Answer

You just need to put the constant in the to the query between single quotes:

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement