pysqlite - simple problem
Gerold Penz
gerold.penz at tirol.utanet.at
Fri Sep 1 03:32:19 EDT 2006
rdrink schrieb:
> num = 200
> cur.execute("INSERT INTO foo (id) VALUES (?)", num)
Hi!
``num`` must be an iterable object (tuple, list, ...).
num = (200,)
cur.execute("INSERT INTO foo (id) VALUES (?)", num)
Regards,
Gerold
:-)
--
________________________________________________________________________
Gerold Penz - bcom - Programmierung
gerold.penz at tirol.utanet.at | http://gerold.bcom.at | http://sw3.at
Ehrliche, herzliche Begeisterung ist einer der
wirksamsten Erfolgsfaktoren. Dale Carnegie
More information about the Python-list
mailing list