oracle联机重定义非分区表到分区表的转换(二)
MP';
CONSTRAINT_NAME CONSTRAINT_TYPE
------------------------------ ---------------
PK_TESTCOL P
SQL> select a.constraint_name,a.constraint_type from dba_constraints a where a.table_name='TESTCOL';
CONSTRAINT_NAME CONSTRAINT_TYPE
------------------------------ ---------------
分区属性也交换了:
SQL> select table_name,partitioned from user_tables where table_name in('TESTCOL','TESTCOL_TMP'); www.2cto.com
TABLE_NAME PARTITIONED
------------------------------ -----------
TESTCOL YES
TESTCOL_TMP NO
分区中有了数据:
SQL> select * from testcol partition(test_part3);
A B D
---------- -------------------- --------------------
21 1 1
作者 雅飞士