gpt4 book ai didi

json - 如何使用等效的 SELECT DISTINCT 语句查询 Azure DocumentDB

转载 作者:行者123 更新时间:2023-12-04 14:44:13 25 4
gpt4 key购买 nike

DocumentDb 不支持 DISTINCT 语句。我在 DocumentDB 中有具有以下结构的文档(数千个文档):

{
"type" : "type1",
"data" : {
...
}
},{
"type" : "type2",
"data" : {
...
}
},{
"type" : "type2",
"data" : {
...
}
},{
"type" : "type2",
"data" : {
...
}
}

如何查询集合并获得以下结果:

{
"type" : "type1"
},{
"type" : "type2"
}

最佳答案

Azure DocumentDB 目前不支持 DISTINCT

请在DocumentDB's feedback forum上发表您的意见并为此功能投票.

关于json - 如何使用等效的 SELECT DISTINCT 语句查询 Azure DocumentDB,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26928950/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com