唯一索引
SequoiaDB 巨杉数据库支持创建唯一索引,用于保证索引字段值的唯一性。在使用唯一索引时,如果插入或更新的索引字段值在集合中已存在,则操作报错。
使用
集合 sample.employee 存在如下记录:
{"id": 1, "name": "Mark", "score": 432, "info": {"age": 18, "city": "Shanghai"}}
{"id": 2, "name": "Adam", "score": 475, "info": {"age": 32, "city&
文档