标签:cells lte 1.0 schema weight family www. dir http
表分区
表- - 分区( partition )TABLE PARTITION
一段时间给出一个分区,这样方便数据的管理。
可以按照范围range分区,列表分区,哈希分区等。
创建表分区: |
SQL> create table t_part(id int) 2 partition by range(id) 3 (partition p1 values less than(5), 4 partition p2 values less than(10), 5 partition pmax values less than(maxvalue) 6 ); |
查询表分区: |
SQL> select * from t_part; SQL>select * from t_part partition(p1); SQL> select * from t_part partition(p2); SQL> select * from t_part partition(pmax);
|
删除分区: |
SQL> alter table t_part drop partition p1; |
Oracle Schema Objects——PARTITION
标签:cells lte 1.0 schema weight family www. dir http
原文地址:http://www.cnblogs.com/thescentedpath/p/PARTITION.html