Oracle Schema objects--partition

Source: Internet
Author: User

Oracle Schema Objects

Table partitioning

Table - - Partitions ( Partition ) TABLE PARTITION

A period of time to give a partition, so as to facilitate the management of data.

You can follow the scope range range, list partition, hash partition, and so on.

To create a table partition:

sql> CREATE TABLE T_part (id int)

2 partition by range (ID)

3 (partition P1 values less than (5),

4 partition P2 values less than (ten),

5 partition Pmax values less than (MaxValue)

6 );

query Table partition:

sql> select * from T_part;

 sql>select * from T_part partition (p1);

sql> select * from T_part partition (P2);

sql> select * from T_part partition (Pmax);

 

To delete a partition:

sql> ALTER TABLE T_part drop partition P1;

Oracle Schema objects--partition

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.