Files
tidb/lightning/tests/lightning_multi_valued_index/data/mv.t-schema.sql
2024-04-02 04:24:23 +00:00

2 lines
277 B
SQL

create table t(pk bigint primary key auto_increment ,j json, i bigint, c char(64), index ((cast(j->'$.number' as signed array))), index ((cast(j->'$.string' as char(64) array))), unique index (pk, (cast(j->'$.number' as signed array)), c)) partition by hash(pk) PARTITIONS 10;