摘要: 创建索引 $collection --> 表名 $field --> 字段名$value --> 值# 1是正排, -1 是倒排 db.$collection.createIndex({$field:1}); # 建立复合索引 db.$collection.createIndex({$field1: 阅读全文
posted @ 2020-07-14 11:20 泽文工作室 阅读(128) 评论(0) 推荐(0)