我如何掩盖一个表格到分区表



是否有任何方法可以在不重新限制所有依赖对象

的情况下做到这一点

例如triggers。到目前为止,我一直在重新创建它们。

是否有任何方法可以复制而无需重新创建

您必须重新创建表或创建新表格并重命名为原始数据,并从原始数据复制数据。您还需要在原始表上创建所有因素,例如触发器,约束和索引。例如,要对EMP表进行分区:

1.  Create a new table New_EMP as partition table. 
2.  Then insert data from original table to new partition table.
3.  Create all indexes and constraints on the new table
4.  Rename the original employees table to something else.
5.  Rename New_EMP to employees.

相关内容

最新更新