Cannot run a single MySQLdb execute....

Νίκος Γκρ33κ nikos.gr33k at gmail.com
Thu Mar 28 05:08:11 CET 2013


If you mean if iam using '?' or this '%s' the latter used to work flawlessly  with python 2.6 but it does not in pythin 3.2.3

both this command fail in python 3.x

cur.execute( '''SELECT hits FROM counters WHERE url = ?''', (page,) )

cur.execute( '''SELECT hits FROM counters WHERE url = %s''', (page,) )

i dont have a clue why....



More information about the Python-list mailing list