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