当前位置:网站首页>After Oracle creates a table partition, the partition is not given during the query, but the value specified for the partition field will be automatically queried according to the partition?
After Oracle creates a table partition, the partition is not given during the query, but the value specified for the partition field will be automatically queried according to the partition?
2022-07-26 16:52:00 【Cloth clothes & mortal dust】
Oracle After creating a table partition , Do not give when querying partition, But the value assigned to the partition field , Will it automatically query by partition ?
Take the answer 1:
Meeting :
example :
-- Data preparation :CREATE TABLE t1 ( id number, CD NUMBER (8) NOT NULL) PARTITION BY RANGE(CD)( PARTITION t1_RANGE_10 VALUES LESS THAN (10), PARTITION t1_RANGE_20 VALUES LESS THAN (20), PARTITION t1_RANGE_30 VALUES LESS THAN (30) );insert into t1 values(1,5);insert into t1 values(2,15);insert into t1 values(3,25);select * from t1 partition(t1_RANGE_10);select * from t1 partition(t1_RANGE_20);select * from t1 partition(t1_RANGE_30);SQL> select * from t1 partition(t1_RANGE_10); ID CD---------- ---------- 1 5SQL> select * from t1 partition(t1_RANGE_20); ID CD---------- ---------- 2 15SQL> select * from t1 partition(t1_RANGE_30); ID CD---------- ---------- 3 25


If you are satisfied with the answer , Please click the adopt button !
Other answers 1:
Meeting :
example :
-- Data preparation :CREATE TABLE t1 ( id number, CD NUMBER (8) NOT NULL) PARTITION BY RANGE(CD)( PARTITION t1_RANGE_10 VALUES LESS THAN (10), PARTITION t1_RANGE_20 VALUES LESS THAN (20), PARTITION t1_RANGE_30 VALUES LESS THAN (30) );insert into t1 values(1,5);insert into t1 values(2,15);insert into t1 values(3,25);select * from t1 partition(t1_RANGE_10);select * from t1 partition(t1_RANGE_20);select * from t1 partition(t1_RANGE_30);SQL> select * from t1 partition(t1_RANGE_10); ID CD---------- ---------- 1 5SQL> select * from t1 partition(t1_RANGE_20); ID CD---------- ---------- 2 15SQL> select * from t1 partition(t1_RANGE_30); ID CD---------- ---------- 3 25


If you are satisfied with the answer , Please click the adopt button !
边栏推荐
- VS2017打开项目提示需要迁移的解决方法
- 广东首例!广州一公司未履行数据安全保护义务被警方处罚
- Stop using xshell and try this more modern terminal connection tool
- 正则表达式
- 【E-MR】NameNode的错误恢复记录
- [ctfshow-web]反序列化
- Operating system migration practice: deploying MySQL database on openeuler
- IDEA 阿里云多模块部署
- NUC 11 build esxi 7.0.3f install network card driver-v2 (upgraded version in July 2022)
- 2022牛客暑期多校训练营2(BDGHJKL)
猜你喜欢

Definition and relationship of derivative, differential, partial derivative, total derivative, directional derivative and gradient

NUC 11构建 ESXi 7.0.3f安装网卡驱动-V2(2022年7月升级版)

"Green is better than blue". Why is TPC the last white lotus to earn interest with money
![[Development Tutorial 9] crazy shell arm function mobile phone-i2c tutorial](/img/9d/2a1deca934e6d56d729922b1d9e515.png)
[Development Tutorial 9] crazy shell arm function mobile phone-i2c tutorial

Marketing guide | several common micro blog marketing methods

Guetzli simple to use

Pyqt5 rapid development and practice 3.4 signal and slot correlation

C#转整型的三种方式的区别以及效率对比

Vscode batch delete

操作系统迁移实战之在openEuler上部署MySQL数据库
随机推荐
Marxan模型保护区优化与保护空缺甄选技术、InVEST生态系统中的应用
Acl-ijcai-sigir top conference paper report meeting (AIS 2022) Note 3: dialogue and generation
VS2017打开项目提示需要迁移的解决方法
Pyqt5 rapid development and practice 3.4 signal and slot correlation
Digital intelligence transformation, management first | jnpf strives to build a "full life cycle management" platform
【E-MR】NameNode的错误恢复记录
限流对比:Sentinel vs Hystrix 到底怎么选?
如何保证缓存和数据库一致性
面试时候常说的复杂度到底是什么?
Recurrence of historical loopholes in ThinkPHP
guetzli简单使用
导数、微分、偏导数、全微分、方向导数、梯度的定义与关系
[Development Tutorial 9] crazy shell arm function mobile phone-i2c tutorial
Win11怎么重新安装系统?
The difference and efficiency comparison of three methods of C # conversion integer
Replicationcontroller and replicaset of kubernetes
Digital currency of quantitative transactions - merge transaction by transaction data through timestamp and direction (large order consolidation)
Using MySQL master-slave replication delay to save erroneously deleted data
Tensorflow Lite source code analysis
Thinkphp历史漏洞复现