ob-ce-4.0.0不支持DUPLICATE_SCOPE

版本

Server version:         5.7.25 OceanBase_CE 4.0.0.0 (r100000272022110114-6af7f9ae79cd0ecbafd4b1b88e2886ccdba0c3be) (Built Nov  1 2022 14:57:18)

参考文档:
CREATE TABLE -OceanBase 数据库-OceanBase文档中心-分布式数据库使用文档

执行下面的SQL报错(mysql/obclient结果均报错):

ob [test]>create table t1(id bigint not null auto_increment , c1 varchar(50), c2 timestamp not null default current_timestamp) DUPLICATE_SCOPE = cluster;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your OceanBase version for the right syntax to use near 'DUPLICATE_SCOPE = cluster' at line 1

OceanBase 数据库社区版 V4.0.0-OceanBase 数据库-OceanBase文档中心-分布式数据库使用文档
上述文档中,没看到4.0.0的release notes中有关于去掉该功能的描述。

https://www.oceanbase.com/docs/community-observer-cn-10000000000900534
在对应版本发布记录里有提到,这里的复制表,即设置duplicate_scope 属性。

谢谢,文档中相对应的内容也更新下比较合适 :)

感谢,已经反馈给文档的同学了。