Quantcast
Channel: MySQL Forums - Connector/Python
Viewing all articles
Browse latest Browse all 384

during string formatting, Wrong number of arguments (no replies)

$
0
0
(1) Here is prove that it does work:

>>> cnx = mysql.connector.connect(............)
>>> cur = cnx.cursor()
>>> cur.execute("SELECT %(name)s, %(name)s", {'name': 'ham'})
>>> cur.fetchall()
[(u'ham', u'ham')]

Viewing all articles
Browse latest Browse all 384

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>