唯一索引
更新時間 2025-02-14 10:21:30
最近更新時間: 2025-02-14 10:21:30
分享文章
本文為您介紹如何創建唯一索引。
創建唯一索引
teledb=# create unique index t_as_id_uidx on t_as using btree(id);
CREATE INDEX非shard key 字段不能建立唯一索引
teledb=# create unique index t_as_id_uidx on t_as using btree(mc);
ERROR: Unique index of partitioned table must contain the hash/modulo distribution column.