Mysql – SQL query error in Python with parameter SQL method occurs during program execution
I want to run the following code, but Python gives me an error code : select = input("ENTER USER FOR PASS RECOVERY : ") cursor.execute("SELECT COUNT(*) FROM user_stat WHERE usr=(%s)",(select)) python code error : mysql.connector.errors.ProgrammingError: 1064 (42000): You have an…