唯一索引
 
                  更新时间 2025-02-14 10:21:50
                 
 
                    最近更新时间: 2025-02-14 10:21:50
                  
 本文为您介绍如何创建唯一索引。
 创建唯一索引
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.