更新 sql.md

This commit is contained in:
8ga
2026-09-15 11:37:35 +08:00
parent 27e90e99ee
commit 304250da43
+7
View File
@@ -9,3 +9,10 @@ select '单智能体' AS agent_type, agent.agent_id, agent.agent_name, IFNULL(au
UNION ALL
select '多智能体' AS agent_type, ma.agent_id, ma.agent_name, IFNULL(maus.user_num,0) AS user_num from `multi_agent_main` AS ma left join agent_usage_stats AS maus ON ma.agent_id = maus.agent_id where ma.del_flag = '0';
```
## 查客户端是否登录
```sql
select * from `mis-cloud-claw`.`sys_logininfor`
where client_key = (select client_key from `mis-cloud-claw`.`sys_client` where `client_id` = '客户端ID');
```