当前位置:网站首页>【原创】 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执行下,如果出现以下关键字就说明成功
边栏推荐
- 最长的可整合子数组的长度
- Luogu p1144 shortest circuit count
- Interface documentation system - Yapi
- 获取屏幕高度
- ArrayList分析1-循环、扩容、版本
- The college entrance examination in 2022 is over. Does anyone really think programmers don't need to study after work?
- C#生成putty格式的ppk文件(支持passphrase)
- 问题解决:如何管理线程私有(thread_local)的指针变量
- Redis - how to understand publishing and subscribing
- ArrayList分析1-循环、扩容、版本
猜你喜欢
2022-2028 global weight loss ginger tea industry research and trend analysis report
20220215 CTF misc buuctf Xiaoming's safe binwalk analysis DD command separate rar file archpr brute force password cracking
VR panorama adds contrast function to make the display of differentiation effect more intuitive!
Introduction to ES6 promise, new features of ES7 and es8 async and await
20220215 misc buctf easycap Wireshark tracks TCP flow hidden key (use of WinHex tool)
P4学习——Basic Tunneling
Line number of Jenkins pipeline script execution exception
Redis - how to understand publishing and subscribing
2022-2028 global 3D printing ASA consumables industry research and trend analysis report
Implementation of OSD on Hisilicon platform (1)
随机推荐
[designmode] factory pattern
CMU15445 (Fall 2019) 之 Project#1 - Buffer Pool 详解
SSM integration process (integration configuration, function module development, interface test)
Luogu p1144 shortest circuit count
2022-2028 global ultra high purity electrolytic iron powder industry research and trend analysis report
[untitled]
Rhai - rust's embedded scripting engine
The principle and related problems of acid in MySQL
20220216 misc buuctf backdoor killing (d shield scanning) - clues in the packet (Base64 to image)
2022-2028 global rotary transmission system industry research and trend analysis report
Basic data structure of redis
P4学习——Basic Tunneling
2022-2028 global single travel industry research and trend analysis report
MySQL variables, stored procedures and functions
[DaVinci developer topic] -37- detail IRV: introduction to inter runnable variable + configuration
P4学习——p4runtime
"Experience" my understanding of user growth "new users"
Deployment of mini version message queue based on redis6.0
Redis - cache penetration, cache breakdown, cache avalanche
2022-2028 global encrypted external hard disk industry research and trend analysis report