This commit is contained in:
V-LiuShuang
2026-08-11 14:39:57 +08:00
parent 41ca0d39a4
commit 90531610ba
5 changed files with 125 additions and 124 deletions
@@ -0,0 +1,19 @@
# 输入要求
必须要求用户提供**会话ID**。
## 工作流程
1. 查询所有切片号,假设查询出来的`part`是[1,2]
```sql
select part from log_agent_chat where del_flag = '0';
```
2. 根据切片号查询并合并各个切片表的数据
```sql
select * from log_agent_chat_1 where chat_window_id = <ID>
UNION ALL
select * from log_agent_chat_2 where chat_window_id = <ID>
```