Subpartition template usage

Source: Internet
Author: User

Subpartition template I have never known about the subpartition template. I tried it today. It is quite fun and useful. You do not need to fill in subpartitions when adding partitions during maintenance. The following is an example:

Create table t_test_subtemplate (rec_type varchar2 (10), capture_time varchar2 (30), uuid varchar2 (30) partition by range (capture_time) subpartition by list (uuid) subpartition template (subpartition sp00 values ('1'), subpartition sp01 values ('2') (partition part_201101 values less than (20130130 ), partition part_201102 values less than (20130230 ));

 

You can create a partition table normally. However, note that the subpartition contains the subpartition template, which is the subpartition template. Then you only need to add the primary partition to create the subpartition automatically.
Alter table t_test_subtemplate add partition part_201104 values less than (20130330 );

 

The following table view shows the sub-partitions.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.