上一页 1 2 3 4 5 6 ··· 10 下一页
  2017年7月31日
摘要: 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) 编辑
  2017年7月28日
摘要: 总结 1.插入数据 2.查找嵌套在数组中的文档 3.根据数组索引查找内嵌文档元素 如果不是精确到具体的索引元素,则只要里面满足即可展现 4.使用elemMatch来查找符合数组元素的条件 5.使用elemMatch查找范围 This page provides examples of query o 阅读全文
posted @ 2017-07-28 10:13 懒睡的猫熊 阅读(423) 评论(0) 推荐(0) 编辑
摘要: 1.插入 2.匹配数组 使用$all可以找到自己制定包含在数据中的元素 可以根据数组索引位置查找元素 通过数组长度查询 This page provides examples of query operations on array fields using the db.collection.fi 阅读全文
posted @ 2017-07-28 09:28 懒睡的猫熊 阅读(359) 评论(0) 推荐(0) 编辑
  2017年7月26日
摘要: 1.插入案例 2.匹配内嵌文档 如果顺序不一致,则无法出正确数据 3 在嵌套字段中查找 This page provides examples of query operations on embedded/nested documents using thedb.collection.find() 阅读全文
posted @ 2017-07-26 14:49 懒睡的猫熊 阅读(589) 评论(0) 推荐(0) 编辑
摘要: 总结 1 先插入数据 2 查询所有数据 3 指定相等条件 4 指定查询运算条件 5 指定and的条件 6 指定or条件 7 指定and和or的条件 This page provides examples of query operations using the db.collection.find 阅读全文
posted @ 2017-07-26 11:58 懒睡的猫熊 阅读(480) 评论(0) 推荐(0) 编辑
  2017年7月25日
摘要: 总结 列举insert插入方法 MongoDB provides the following methods for inserting documents into a collection: Additional Methods for Inserts The following methods 阅读全文
posted @ 2017-07-25 10:22 懒睡的猫熊 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 总结 1.插入单文档 2.插入多文档 This page provides examples of insert operations in MongoDB. CREATING A COLLECTION If the collection does not currently exist, inse 阅读全文
posted @ 2017-07-25 10:19 懒睡的猫熊 阅读(806) 评论(0) 推荐(0) 编辑
摘要: 总结 1. CRUD:create, read, update, and delete DOCUMENT 2.在3.2版本的插入方式 db.users.insertOne({ name:"sue", age:26, status:"pending" }) 3 Read 操作 4 Update操作 d 阅读全文
posted @ 2017-07-25 10:03 懒睡的猫熊 阅读(362) 评论(0) 推荐(0) 编辑
  2017年7月24日
摘要: 总结: 1.MongoDB 的BSON格式支持额外的数据类型 2 Date 对象内部存储64位字节存整数,存储使用NumberLong()这个类来存,使用NumberInt()存32位整数,128位十进制的用NumberDecimal()存储(这个函数是为了方便的存储财政数据) 3 时间的三个方法 阅读全文
posted @ 2017-07-24 13:54 懒睡的猫熊 阅读(582) 评论(0) 推荐(0) 编辑
  2017年7月20日
摘要: 总结 1 使用js进行获取数据的方法 2 js方式和原生mongo shell的交互方式的区别写法 3 需要将所有数据打印出来使用到的循环示例 4 介绍怎么外部执行js文件 5 介绍怎么在mongo shell中加载js文件 You can write scripts for the mongo s 阅读全文
posted @ 2017-07-20 10:07 懒睡的猫熊 阅读(365) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 10 下一页