try:
c = db.cursor()
c.execute("insert or replace into registrations values " +
"(?, ?, datetime('now'))", (user, identity))
print '\t<update>true</update>'
except Exception,inst:
print inst.args
insert create table not working。我如何获取异常详细信息?python sqlite3不能正常工作
首先,请使用代码块的代码,这将使它更容易阅读。按Ctrl-K。 – Jan 2011-06-02 13:33:22