oracle partition分割槽_分割槽列為空測試(一)
1 create table t_partition(a int,b int)
2 partition by range(a)
3 (partition p1 values less than (10),
4 partition p2 values less than (maxvalue)
5* )
13:36:09 SQL> /
2 partition by range(a)
3 (partition p1 values less than (10),
4 partition p2 values less than (maxvalue)
5* )
13:36:09 SQL> /
Table created.
Elapsed: 00:00:00.24
Elapsed: 00:00:00.02
13:36:27 SQL> insert into t_partition values(null,1);
1 row created.
Elapsed: 00:00:00.01
13:36:33 SQL> insert into t_partition values(1,1);
13:36:33 SQL> insert into t_partition values(1,1);
1 row created.
Elapsed: 00:00:00.00
13:36:40 SQL> insert into t_partition values(12,1);
13:36:40 SQL> insert into t_partition values(12,1);
1 row created.
Elapsed: 00:00:00.00
13:36:43 SQL> commit;
13:36:43 SQL> commit;
Commit complete.
Elapsed: 00:00:00.00
13:36:45 SQL> select * from t_partition;
13:36:45 SQL> select * from t_partition;
A B
---------- ----------
1 1
1
12 1
---------- ----------
1 1
1
12 1
Elapsed: 00:00:00.01
13:36:49 SQL> select table_name,partition_name,num_rows from user_tab_partitions
where table_name='T_PARTITION';
13:36:49 SQL> select table_name,partition_name,num_rows from user_tab_partitions
where table_name='T_PARTITION';
TABLE_NAME PARTITION_NAME NUM_ROWS
------------------------------ ------------------------------ ----------
T_PARTITION P1
T_PARTITION P2
------------------------------ ------------------------------ ----------
T_PARTITION P1
T_PARTITION P2
Elapsed: 00:00:00.26
Elapsed: 00:00:00.13
13:37:52 SQL> exec dbms_stats.gather_table_stats(user,'t_partition');
PL/SQL procedure successfully completed.
Elapsed: 00:00:03.33
13:38:03 SQL> select table_name,partition_name,num_rows from user_tab_partitions
where table_name='T_PARTITION';
13:38:03 SQL> select table_name,partition_name,num_rows from user_tab_partitions
where table_name='T_PARTITION';
TABLE_NAME PARTITION_NAME NUM_ROWS
------------------------------ ------------------------------ ----------
T_PARTITION P1 1
T_PARTITION P2 2
------------------------------ ------------------------------ ----------
T_PARTITION P1 1
T_PARTITION P2 2
Elapsed: 00:00:00.05
13:38:06 SQL> select * from t_partition partition(p1);
13:38:06 SQL> select * from t_partition partition(p1);
A B
---------- ----------
1 1
---------- ----------
1 1
Elapsed: 00:00:00.04
13:38:37 SQL> select * from t_partition partition(p2);
13:38:37 SQL> select * from t_partition partition(p2);
A B
---------- ----------
1
12 1
---------- ----------
1
12 1
Elapsed: 00:00:00.00
13:38:40 SQL>
13:38:40 SQL>
小結:分割槽鍵為空,此行記錄歸屬於最後一個發區
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9240380/viewspace-752191/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- oracle分割槽partition及分割槽索引partition index(一)Oracle索引Index
- ORACLE 範圍分割槽 partition-range分割槽Oracle
- oracle分割槽及分割槽索引partition_partition index_維護(一)Oracle索引Index
- oracle reference partition引用分割槽(一)Oracle
- oracle list partition列表分割槽(一)Oracle
- 分割槽Partition
- oracle分割槽及分割槽索引partition_partition index_維護(二)Oracle索引Index
- oracle分割槽及分割槽索引partition_partition index_維護(三)Oracle索引Index
- oracle分割槽及分割槽索引partition_partition index_維護(四)Oracle索引Index
- Oracle 分割槽(partition)技術Oracle
- Oracle分割槽表(Partition Table)Oracle
- oracle hash partition雜湊分割槽(一)Oracle
- 非分割槽錶轉換為分割槽表和partition indexIndex
- 聊聊分割槽Partition——我們為什麼要分割槽(下)
- 聊聊分割槽Partition——我們為什麼要分割槽(中)
- 聊聊分割槽Partition——我們為什麼要分割槽(上)
- oracle分割槽及分割槽索引partition_partition index_維護(五)_快捷方法Oracle索引Index
- 【實驗】【PARTITION】RANGE分割槽表截斷表分割槽(Truncate Partition)
- 【實驗】【PARTITION】RANGE分割槽表移動表分割槽(Move Partition)
- MySQL 分割槽表 partition線上修改分割槽欄位MySql
- 【實驗】【PARTITION】RANGE分割槽表合併分割槽
- 【實驗】【PARTITION】RANGE分割槽表增加分割槽
- 【實驗】【PARTITION】RANGE分割槽表刪除分割槽
- 分割槽表PARTITION table
- oracle實用sql(14)--查詢分割槽表的分割槽列和子分割槽列OracleSQL
- 【實驗】【PARTITION】RANGE分割槽表重新命名錶分割槽(Rename Partition)
- Oracle Partition 分割槽詳細總結Oracle
- 測試oracle子分割槽維護Oracle
- 分割槽partition知識點
- MySQL分割槽(Partition)詳解MySql
- 分割槽剪除 (partition pruning)
- 分割槽表PARTITION table(轉)
- 融合(merge partition)分割槽
- 合併分割槽(coalesce partition)
- Oracle分割槽表及分割槽索引Oracle索引
- Oracle分割槽表基礎運維-07增加分割槽(3列表分割槽)Oracle運維
- 分割槽表UNUSED列後的EXCHANGE PARTITION操作
- 簡單ORACLE分割槽表、分割槽索引Oracle索引