drop table if exists p, p1, p2, p3, p4, p5;
drop sequence detaches;
create table p( a int,b int) partition by range(a);
create table p1 partition of p for values from (0) to (1);
create table p2 partition of p for values from (1) to (2);
create table p3 partition of p for values from (2) to (3);
create table p4 partition of p for values from (3) to (4);
create table p5 partition of p for values from (4) to (5);
create sequence detaches;
