Commit c70eb9b0 by huangjing

hj

parent 22271c77
......@@ -110,11 +110,11 @@ class DataBase:
return flag
def insert_batch(self, sql,data_liats):
def insert_batch(self, sql):
flag = False
if (self._conn):
try:
self._cursor.executemany(sql,data_liats)
self._cursor.execute(sql)
flag = True
self._conn.commit()
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