postgresql 分表

阅读 255

2022-09-05

create table test_part
(
    id   int,
    name varchar,
    age  numeric
) partition by range (age);
create table test_part_yong partition of test_part for values from (MINVALUE ) to (25);
create table test_part_medium partition of test_part for values from (25) to (75);
create table test_part_old partition of test_part for values from (75) to (maxvalue );

精彩评论(0)

0 0 举报