使用限制

    1. OceanBase(admin@test)>create table test(pk int,c2 int ,c3 int, primary key(pk)) partition by hash(pk) partitions 5;
    2. Query OK, 0 rows affected (0.20 sec)
    3. ERROR-00600: internal error code, arguments: -5261, A UNIQUE INDEX must include all columns in the table's partitioning function
    4. OceanBase(admin@test)> create unique index idx on test(c2, pk) LOCAL;
    5. Query OK, 0 rows affected (0.02 sec)
    6. Query OK, 0 rows affected (17.47 sec)