ob4.x是不是只有企业版支持非分区表转为分区表,社区版好像不行

alter table sbtest1 modify partition by hash(id) partitions 5;
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 ‘partition by hash(id) partitions 5’ at line 1

您好,企业版和社区版都是支持的。报错为sql语法错误。具体sql可以参考该文档https://www.oceanbase.com/docs/common-oceanbase-database-cn-10000000001581102

可以了 thx!