Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Index optimization series 14-when the performance of partitioned indexes is low

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Drop table part_tab purge

Create table part_tab (id int,col2 int,col3 int)

Partition by range (id)

(

Partition p1 values less than (10000)

Partition p2 values less than (20000)

Partition p3 values less than (30000)

Partition p4 values less than (40000)

Partition p5 values less than (50000)

Partition p6 values less than (60000)

Partition p7 values less than (70000)

Partition p8 values less than (80000)

Partition p9 values less than (90000)

Partition p10 values less than (100000)

Partition p11 values less than (maxvalue)

)

Insert into part_tab select rownum,rownum+1,rownum+2 from dual connect by rownum

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report