标签: mongodb mongodb-query
db.duplicate.ensureIndex ({"a": 1}, {"unique": "true"})
a
db.duplicate.find()
_id & a = 1