当前位置:网站首页>【原创】 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执行下,如果出现以下关键字就说明成功


边栏推荐
- 2022-2028 global rampant travel industry research and trend analysis report
- Never use redis expired monitoring to implement scheduled tasks!
- Rust book materials - yazhijia Library
- 问题解决:如何管理线程私有(thread_local)的指针变量
- 剑指 Offer 19. 正则表达式匹配
- 什么是产品思维
- 获取屏幕高度
- Oracle-表的创建与管理
- On the application of cluster analysis in work
- Vulnerability discovery - App application vulnerability probe type utilization and repair
猜你喜欢

Inventory the six second level capabilities of Huawei cloud gaussdb (for redis)

Gateway service gateway

To tell you the truth, ThreadLocal is really not an advanced thing

Redis - cache penetration, cache breakdown, cache avalanche

ABAQUS 2022 latest edition - perfect realistic simulation solution

2022-2028 global rotary transmission system industry research and trend analysis report

Pytorch auto derivation

VR panorama adds contrast function to make the display of differentiation effect more intuitive!

Implementation of OSD on Hisilicon platform (1)

给按钮的边框和文字设置不同的背景色
随机推荐
Ybtoj exchange game [tree chain splitting, line segment tree merging]
What SQL statements are supported for data filtering
2022-2028 global single travel industry research and trend analysis report
Date类的实现
Excuse me, does Flink support synchronizing data to sqlserver
Design e-commerce seckill system
写给 5000 粉丝的一封信!
Interface documentation system - Yapi
Plot size and resolution with R markdown, knitr, pandoc, beamer
File reading and writing for rust file system processing - rust Practice Guide
C WinForm program interface optimization example
Ranger plug-in development (Part 2)
2022-2028 global 3D printing ASA consumables industry research and trend analysis report
解决 error MSB8031: Building an MFC project for a non-Unicode character set is deprecated.
SSM integration process (integration configuration, function module development, interface test)
Quick start of wechat applet -- project introduction
Basic data structure of redis
How does the VR cloud exhibition hall bring vitality to offline entities? What are the functions?
Oracle-表的创建与管理
2022-2028 global plant peptone industry research and trend analysis report