我在Couch DB中有以下文档,我想写一个查询来检索所有学生的编程=" MSc"。我该怎么做?
文档
{
"_id": "students",
"_rev": "10-f1c709ee8be06faaf7065e785dd72f2b",
"Students": [
{
"StudentId": "2015156",
"Name": "Trinity",
"Age": "32",
"Program": "MSc"
},
{
"StudentId": "2015157",
"Name": "Thomas Anderson",
"Age": "34",
"Program": "MSc"
}
]
}
答案 0 :(得分:0)
编写一个视图,将该程序作为键发出,将学生块/哈希/对象作为值。