def insertDB(self, sql, params):
try:
print params
cursor = self.conn.cursor()
print cursor.execute(sql, params)
except MySQLdb.Warning, w:
print "Warning:%s" % str(w)
print traceback.print_exc()
pass
except MySQLdb.Error, e:
print "Error:%s" % str(e)
print traceback.print_exc()
pass
评论列表
文章目录