DocumentDb 不支持DISTINCT
陈述。我在 DocumentDB 中有具有以下结构的文档(数千个文档):
{
"type" : "type1",
"data" : {
...
}
},{
"type" : "type2",
"data" : {
...
}
},{
"type" : "type2",
"data" : {
...
}
},{
"type" : "type2",
"data" : {
...
}
}
如何查询集合并获得以下结果:
{
"type" : "type1"
},{
"type" : "type2"
}
Azure DocumentDB 目前不支持DISTINCT
.
请发表您的意见并为此功能投票DocumentDB 的反馈论坛 https://feedback.azure.com/forums/263030-documentdb/suggestions/6719531-provide-support-for-distinct.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)