So I am trying to create a script with a MySQL Query "show databases like 'login';"
I am able to use string substitution and use "login" but i am unable to get the single quotes around it.
Below is how I am trying to do it but i cant get the single quotes even if I escape it using "\".
db = "'"+val+"'"
print "DB...", db
run.cmd("echo 'res = cur.execute(\"SHOW DATABASES like %s;\")\n' >> /run.py" % (db))