- 论坛徽章:
- 0
|
229: Could not open or create a temporary file.
110: ISAM error: end or beginning of the file.
代码执行到这部分出错
select ...
from loan a
,gl_assgn b
,gl_tx_bdts c
,cpwj d
,ln_gl_acct e
where b.lnpa_loan_typ=a.lnpa_loan_typ
and a.loan_no=c.loan_no
and c.loan_no=e.loan_no
and e.ldgr_id = c.ldgr_cde
--and c.prcs_bch != '00000'
and substr(c.bch,1,2)=d.jydqdh
and c.host_tx_no = d.gylsh
and c.bch_gl_ac_no = d.zhdh
and c.drcr = decode(d.jdbj, '0', 'D', 'C')
and ( ('0' = d.bczbz and c.tx_no not in (select revse_tx_no from gl_tx_bdts where revse_tx_no is not null))
or
('1' = d.bczbz and c.tx_no in (select revse_tx_no from gl_tx_bdts where revse_tx_no is not null)))
and (d.jydm = '3750' or d.jydm = '3752' or d.jydm = '3754')
and d.zhdh in (select zhdh from temp_bzh)
order by 1,2,3,4 asc
into temp temp_cp_part1 with no log ; -------temp_cp_part1表获得了FLBZ,BASE_AMT,ZHDH等字段
create index temp_cp_part1_idx on temp_cp_part1(cpzxh, cpznxh); |
|