update 数据导出优化
This commit is contained in:
@@ -98,6 +98,7 @@ class MySQLHelper:
|
||||
:param params: 参数,可以是元组、列表或字典
|
||||
:return: 影响的行数
|
||||
"""
|
||||
|
||||
try:
|
||||
affected_rows = self.cursor.execute(sql, params)
|
||||
self.connection.commit()
|
||||
|
||||
Reference in New Issue
Block a user