python - not all arguments converted during string formatting for select -
i can not select database have error:
not arguments converted during string formatting
my script is:
bo=str(mac) cur.execute("""select * devices mac= %s """,bo)
you need add % in front of bo, this:
bo=str(mac) cur.execute("""select * devices mac= %s """, %bo)
Comments
Post a Comment