.查看SQL信息:
select *
from (select
a.cert_type,
a.cert_no,
a.cust_name,
e.oper_no,
to_char(c.vou_start_no + instr(c.vou_status, '0') - 1,
'fm00000000') as vou,
e.bran_code
from comr_cifbinfo a,
comc_box b,
comr_clerk_vou c,
auto_comc_clerk e
where a.cert_type = '1'
and substr(rtrim(a.cert_no), 18, 1) is not null
and a.cert_no not in
('330721197211217006X', '1302011981101070315')
and a.valid_flag = '0'
and not exists
(select * from comr_
分页SQL走全表扫描导致TEMP耗尽
最新推荐文章于 2024-05-21 09:16:50 发布
博客分析了一个导致TEMP空间耗尽的分页SQL查询,指出其通过全表扫描和排序操作的问题。通过创建索引和使用hints优化,将原本的全表扫描改为索引访问,显著减少了资源消耗,改善了查询性能。
摘要由CSDN通过智能技术生成