
参数中,第一个{}表示返回所有,第二个表示选择的列,1表示选择,0表示禁止输出
1 2 3 4 5 6 7
|
> db.urls.find({}, {'Url':1, '_id':0}) { "Url" : "http://www.allitebooks.com/object-oriented-programming-with-c-2nd-edition/" } { "Url" : "http://www.allitebooks.com/algorithms-design-and-analysis/" } { "Url" : "http://www.allitebooks.com/data-structures-using-c-2nd-edition/" } ... Type "it" for more >
|
近期评论