摘要: 1. 多键唯一索引 a.loc 和 a.qty 为符合多键索引 db.collection.createIndex( { "a.loc": 1, "a.qty": 1 }, { unique: true } ) 如: db.getCollection("Name,idcardNo").createI 阅读全文
posted @ 2022-04-03 14:54 leolzi 阅读(261) 评论(0) 推荐(0) 编辑