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

Popular posts from this blog

SQL php on different pages to Insert (mysqli) -

php - How can an email be returned from Stripe Checkout? -

sql - Partition elimination in Greenplum -