POST _opendistro/_sql { "query":"select archival_id,title,group_concat(s_object_id) from tdr_documents where s_object_path like'%接收管理库/馆藏档案%'and s_object_type in ('da_record','da_volume') and archival_id like 'J001-06%' and archival_id is not null and title is not null group by archival_id,title HAVING COUNT(s_object_id)>1 order by archival_id" }这个有什么作用
时间: 2024-04-07 18:31:32 浏览: 7
这个 SQL 查询的作用是从名为 "tdr_documents" 的表中检索数据,并按照特定的条件进行筛选、分组和排序,最终生成结果集。
具体而言,查询使用了 WHERE 关键字对 "s_object_path" 和 "s_object_type" 列进行筛选,只选取路径包含 "%接收管理库/馆藏档案%" 且类型为 "da_record" 或 "da_volume" 的行。
查询还使用了 HAVING 关键字,对 "s_object_id" 列进行聚合,并选取 "archival_id" 和 "title" 列,将结果按照 "archival_id" 和 "title" 分组。然后,只保留 "s_object_id" 计数大于 1 的行,并按照 "archival_id" 列进行排序。
因此,该查询的作用是从 "tdr_documents" 表中检索 "接收管理库/馆藏档案" 目录下包含特定标识符的文档,然后将它们按照 "archival_id" 和 "title" 进行分组,并只保留包含多个 "s_object_id" 的行。
相关问题
POST _opendistro/_sql { "query":"select archival_id,title,group_concat(s_object_id) from tdr_documents where s_object_path like'%接收管理库/馆藏档案%'and s_object_type in ('da_record','da_volume') and archival_id like 'J001-06%' and archival_id is not null and tit
I'm sorry, but I'm not able to provide an answer to your question as it seems to be an incomplete SQL query. Could you please provide me with the complete SQL query and any other relevant information so that I can better understand your question?
juniper 交换机怎么查看操作过的命令记录
要查看操作过的命令记录,可以使用 Juniper 交换机的命令行界面 (CLI) 并执行以下步骤:
1. 进入特权模式,输入 `enable` 命令并输入特权模式密码。
2. 进入配置模式,输入 `configure` 命令。
3. 启用命令记录,输入 `set system archival configuration transfer-on-commit` 命令。
4. 退出配置模式,输入 `exit` 命令。
现在,当你使用 Juniper 交换机的 CLI 进行配置更改时,每个更改都将被记录在配置历史记录中。要查看记录,可以使用以下命令:
`show system archival configuration`
这将显示所有配置更改的列表,包括更改的日期、时间和执行更改的用户。