现象
create table include_global_test (id int,col1 varchar(2))
partition by range(col1)
( partition p1 values less than ('10') ) ;
ALTER TABLE include_global_test ADD CONSTRAINT pk_include_global_test PRIMARY KEY (id);



现象原因
补充测试
01 普通表

02 分区表主键也是分区键

03 分区表主键非分区键

04 分区表的global和local索引

结论
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29715045/viewspace-3024789/ ,如需转载,请注明出处,否则将追究法律责任。