随笔分类 -  mongodb

摘要:语法: db.collection.createIndex(keys,options) options常用: background Boolean 可以保证索引在后台运行,不影响其它操作,对于大集合数据比较有用。 unique Boolean 是否唯一索引 name String 索引名称。不指定则 阅读全文
posted @ 2020-05-28 16:37 sblack 阅读(300) 评论(0) 推荐(0) 编辑
摘要:一,环境 php 7.2 + thinkphp 5 mongodb 3.4 二,针对Date字段的操作 mongodb shell: 写入: db.students3.insert([ { "_id" : 1, "tests" : [ 95, 92, 90 ], "lastUpdate" : ISO 阅读全文
posted @ 2020-03-14 15:19 sblack 阅读(3927) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示