比如我用范围分区
1:less than 100
2:less than 300
3:less than 500按照你的意思我得提前知道这个范围分区的临界值?
那如果是用hash分区呢???求教~~~

解决方案 »

  1.   

    create   table  x(no number,name varchar(30),age  number) partition by (age)(
    partition a  values less than (30),
    partition b  values less than (50),
    partition max_v  values less than (maxvalue)
    );
    select  * from   x   partition (a) where  age <25;
    这样就可以从a分区里面查找出来小于25的数据了。
      

  2.   

    查看分区数据:
    select * from test partition(p1)