84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
{ 'user_name':'xiaoming', 'books':['java','c++','php','python','js','html','android'] } 查询的时候,怎么只返回books数组中,'c++'后面的3个元素?
闭关修行中......
"The Definitive Guide to MonogDB" Second Edition 61 pages It is recommended to read more books
db.test.find({},{"books":{"$slice":[2,3]}})
"The Definitive Guide to MonogDB" Second Edition 61 pages
It is recommended to read more books