随笔分类 - mongodb
摘要:语法: db.collection.createIndex(keys,options) options常用: background Boolean 可以保证索引在后台运行,不影响其它操作,对于大集合数据比较有用。 unique Boolean 是否唯一索引 name String 索引名称。不指定则
阅读全文
摘要:一,环境 php 7.2 + thinkphp 5 mongodb 3.4 二,针对Date字段的操作 mongodb shell: 写入: db.students3.insert([ { "_id" : 1, "tests" : [ 95, 92, 90 ], "lastUpdate" : ISO
阅读全文