Commit c70eb9b0 by huangjing

hj

parent 22271c77
...@@ -110,11 +110,11 @@ class DataBase: ...@@ -110,11 +110,11 @@ class DataBase:
return flag return flag
def insert_batch(self, sql,data_liats): def insert_batch(self, sql):
flag = False flag = False
if (self._conn): if (self._conn):
try: try:
self._cursor.executemany(sql,data_liats) self._cursor.execute(sql)
flag = True flag = True
self._conn.commit() self._conn.commit()
except Exception as data: except Exception as data:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment