当前位置:网站首页>oracle优化:instr做join条件很慢「建议收藏」
oracle优化:instr做join条件很慢「建议收藏」
2022-07-31 10:43:00 【全栈程序员站长】
大家好,又见面了,我是你们的朋友全栈君。
情况描述
sql语句
select sqdbh,sqr,bm,sqrq,skdwbm,skdwmc,sqfkje ,'N' as xz_flag ,sjfkrq,fkdwkhyh
from (select * from yw_fksqd where to_char(sqrq,'yyyy/mm') >= '2018/12' and state in ('付款' , '已审核' , '批准', 'pz'))
INNER JOIN (select d_no from rs_department where zt_no = :as_zt and tt_no in ('29','32','34','37')) on bm = d_no
left join (select fksqh from CW_ZNHS_RK where zt_no = :as_zt ) on instr(fksqh,sqdbh) > 0
where fksqh is null 如何优化?
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/128927.html原文链接:https://javaforall.cn
边栏推荐
- 单点登录原理及实现方式
- Dart Log工具类
- SQL如何从字符串截取指定字符(LEFT、MID、RIGHT三大函数)
- 【LeetCode】Day108-和为 K 的子数组
- Redis缓冲穿透和缓冲击穿工具类的封装
- A Method for Ensuring Data Consistency of Multi-Party Subsystems
- In half a month, MySQL has been consolidated again, and a tens of thousands of words "super hard core" article has been sorted out!
- WEB核心【记录网站登录人数,记录用户名案例】Cookie技术实现
- 一种用于保证多方子系统数据一致性的方法
- "JUC Concurrent Programming - Advanced" 06 - Immutability of Shared Models (Design of Immutable Classes | Use of Immutable Classes | Flyweight Pattern)
猜你喜欢

Sql optimization summary!detailed!(Required for the latest interview in 2021)

Redis缓存面临的缓存击穿问题

Redis缓存面临的缓存穿透问题

FCN中制作自己的数据集并进行训练

一种用于保证多方子系统数据一致性的方法

SQL——左连接(Left join)、右连接(Right join)、内连接(Inner join)

浅谈Attention与Self-Attention,一起感受注意力之美

Day113. Shangyitong: user authentication, Alibaba Cloud OSS, patient management

初识二叉搜索树

Android安全专题(三)JNI混淆
随机推荐
Mybaits Frequently Asked Questions Explained
[Part 1 of Cloud Native Monitoring Series] A detailed explanation of Prometheus monitoring system
怎样使用浏览器静默打印网页
SQL学习笔记——REGEXP运算符
C#之泛型、委托、事件及其使用
Find a Go job in 7 days, Conditional statements to learn in Gopher, loop statements, Part 3
新人学习小熊派华为iot介绍
GCD简单了解
WSL2安装.NET 6
应用层基础 —— 认识URL
单点登录的三种方式
「MySQL」- 基础增删改查
掌握SSR
【GORM】存取数组/自定义类型数据
What does "chmod 777-R filename" mean?
Redis的简单使用
Dart Log工具类
3D激光SLAM:LeGO-LOAM论文解读---完整篇
Burndown chart of project management tools: Dynamic assessment of team work ability
SQL - Left join, Right join, Inner join