SQL query using %s in Python 3.3 SQL query using %s in Python 3.3 sql sql

SQL query using %s in Python 3.3


A should be a tuple, try with A = ("James",)

see documentation of MySQLCursor.execute(operation, params=None, multi=False)


EDIT: added a comma, thanks to "swordofpain" (I learned something)