2017年7月31日
摘要: 1 迭代游标 2 迭代指数 可以简化成 3 关闭游标,不活跃的游标需要等到10分钟才自动关闭,可以通过指定时间来进行关闭 4 find(), aggregate(), listIndexes, and listCollections 最大是16MB The db.collection.find()  阅读全文
posted @ 2017-07-31 11:02 懒睡的猫熊 阅读(395) 评论(0) 推荐(0) 编辑
摘要: 1 插入数据 2 查询null值 如果要精确查找到对应的null的字段,应该 3 查询是否存在这个元素 Different query operators in MongoDB treat null values differently. This page provides examples of 阅读全文
posted @ 2017-07-31 10:26 懒睡的猫熊 阅读(297) 评论(0) 推荐(0) 编辑
摘要: 1 插入例句 2.只显示需要显示的部分 将ID列也省去 3.查找内嵌文档 4.对数组的查找 By default, queries in MongoDB return all fields in matching documents. To limit the amount of data that 阅读全文
posted @ 2017-07-31 09:38 懒睡的猫熊 阅读(487) 评论(0) 推荐(0) 编辑