当前位置:网站首页>【原创】 PLSQL 索引排序优化
【原创】 PLSQL 索引排序优化
2022-07-01 00:35:00 【51CTO】
转载请注明出处
select /*+INDEX_DESC(T IDX_SYS_MESS_CREATE_DATE)*/
*
FROM sys_message T
where t.create_date is not null
索引名:IDX_SYS_MESS_CREATE_DATE
SQL 表别名:T
注意点:1、 /*+INDEX_DESC(T IDX_SYS_MESS_CREATE_DATE)*/ 红色字的别名要跟表别名一样
2、一定要加上 where 所在索引字段 is not null
3、数据集(非表)没索引可用
4、 /*+INDEX_DESC(T IDX_SYS_MESS_CREATE_DATE)*/ 加上此句后自动会按照红字关键字排序,无需再加order by ,红字部分也可以改成 ASC
按F5执行下,如果出现以下关键字就说明成功


边栏推荐
- The difference between union and union all in MySQL
- Using Excel to quickly generate SQL statements
- 2022-2028 global rampant travel industry research and trend analysis report
- left join左连接匹配数据为NULL时显示指定值
- Integer to hexadecimal string PTA
- CMU15445 (Fall 2019) 之 Project#1 - Buffer Pool 详解
- Don't worry about whether you can be a coder if you don't learn English well. Learn it first
- Combining online and offline, VR panorama is a good way to transform furniture online!
- CTF tool (1) -- archpr -- including installation / use process
- 写给 5000 粉丝的一封信!
猜你喜欢

Deployment of mini version message queue based on redis6.0

20220215 CTF misc buuctf Xiaoming's safe binwalk analysis DD command separate rar file archpr brute force password cracking

Why should VR panoramic shooting join us? Leverage resources to achieve win-win results
![[designmode] factory pattern](/img/62/9be808b3e1c2139d564caa307fcd30.png)
[designmode] factory pattern

CentOS installation starts redis

Which is better, server rental or hosting services in the United States?

P4学习——p4runtime

C#生成putty格式的ppk文件(支持passphrase)

SSM integration process (integration configuration, function module development, interface test)
![[untitled]](/img/96/7f26614bbdcce71006e38ee34ab216.jpg)
[untitled]
随机推荐
Explain kubernetes backup and recovery tools velero | learn more about carina series phase III
Unit test concept and purpose
Search rotation sort array
Mindjet mindmanager2022 mind map decompression installer tutorial
Multi graph explanation of resource preemption in yarn capacity scheduling
Confirm() method of window
Luogu p1168 median
剑指 Offer 19. 正则表达式匹配
女朋友说:你要搞懂了MySQL三大日志,我就让你嘿嘿嘿!
How do it outsourcing resident personnel position their pain points?
2022-2028 global ultra high purity electrolytic iron powder industry research and trend analysis report
Longest valid bracket
Design e-commerce seckill system
实验八 T-sql,存储过程
NE555波形发生器手把手教程之NE555内部结构(一)
Wechat official account development (1) introduction to wechat official account
1009 product of polynomials (25 points) [PTA class A]
20220215 CTF misc buuctf Xiaoming's safe binwalk analysis DD command separate rar file archpr brute force password cracking
When is it appropriate to replace a virtual machine with a virtual machine?
Ybtoj exchange game [tree chain splitting, line segment tree merging]