修改初始加载显示页面

This commit is contained in:
shuaikangzhou
2023-11-29 21:39:38 +08:00
parent 844eb9317a
commit 94e5064aa3
4 changed files with 15 additions and 9 deletions

View File

@@ -15,14 +15,17 @@ def merge_databases(source_paths, target_path):
db = sqlite3.connect(source_path)
cursor = db.cursor()
sql = '''
SELECT TalkerId,MsgsvrID,Type,SubType,IsSender,CreateTime,Sequence,StrTalker,StrContent,DisplayContent
SELECT TalkerId,MsgsvrID,Type,SubType,IsSender,CreateTime,Sequence,StrTalker,StrContent,DisplayContent,BytesExtra
FROM MSG;
'''
cursor.execute(sql)
result = cursor.fetchall()
# 附加源数据库
target_cursor.executemany(
"INSERT INTO MSG (TalkerId,MsgsvrID,Type,SubType,IsSender,CreateTime,Sequence,StrTalker,StrContent,DisplayContent) VALUES(?,?,?,?,?,?,?,?,?,?)",
"INSERT INTO MSG "
"(TalkerId,MsgsvrID,Type,SubType,IsSender,CreateTime,Sequence,StrTalker,StrContent,DisplayContent,"
"BytesExtra)"
"VALUES(?,?,?,?,?,?,?,?,?,?,?)",
result)
cursor.close()
db.close()