I am running a [Water] Meter Data Management system on Linux and Python 2.7. I have been reading SO posts like this.
What is the proper, safe syntax for constructing a query and not having to use the less safe method involving %s
?
rc = test_cur.execute("select m.* from meter m where m.acct_no = '%s' ", acct_no)
I have tried several ways based on the errors I am getting.