Skip to content

YDB DDL Examples

Anton Kovalenko edited this page Apr 23, 2024 · 4 revisions

Create ColumnTable

CREATE TABLE `my_column_table` (
  Key Uint64 not null,
  Value String,
  PRIMARY KEY (Key)
)
PARTITION BY HASH(Key)
WITH (
  STORE = COLUMN,
  AUTO_PARTITIONING_MIN_PARTITIONS_COUNT = 10
);
Clone this wiki locally