[英]Creating a range partition table
i have to create a range partition table(TMP_OA_RANGE). 我必须创建一个范围分区表(TMP_OA_RANGE)。 first i select the min and max action_objid from a table in DB.Here is the query :
首先我从数据库的一个表中选择最小和最大action_objid。这是查询:
select /*+ parallel(a) */ min(action_objid) from TMP_OA a;
select /*+ parallel(a) */ max(action_objid) from TMP_OA a;
Then i need to create the range partition table with 10 partitions with range dividing the above result into ten partitions as : 然后我需要创建具有10个分区的范围分区表,范围将上述结果划分为十个分区,如:
partition 1=min(action_objid) + 1* (max(action_objid) /10)
partition 2=min(action_objid) + 2* (max(action_objid) /10) -partition 1
....
partition 10=min(action_objid) + 10* (max(action_objid) /10) - all nine partitions
Is there a way to do it using sql? 有办法使用sql吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.