达梦非分区表如何转换为分区表
例子:
构造数据:
create table t4 (id int);
begin
for i in 1..100000 loop
insert into t4 values (i);
commit;
end loop;
end;
导出数据:
dexp sysdba/SYSDBA file=/home/dmdba/t4.dmp tables=t4
删除非分区表:
drop table t4;
创建分区表:
create table t4 (id int)
partition by range (id)
(partition p1 values less than (100),
partition p2 values less than (200),
partition pn values less than (maxvalue) );
导入数据:
dimp sysdba/SYSDBA file=/home/dmdba/t4.dmp tables=t4 IGNORE=y