select 'RATION ALL WITH CILQ' OM,
a.p_no,
b.rank_name,
a.name,
a.u_name,
e.pa_code,
d.descr,
e.value,
a.u_code,
c.u_name,
c.pay_grp,
f.TRADE_ABBR,
A.G_CODE,
a.runing_pay,
A.COMP
from pj_pay_mas1 a,
pj_rank b,
pj_unit c,
pj_payall d,
pj_perm_all_dedu1 e,
PJ_TRADE F
where a.u_code = c.u_code
and a.rank_code = b.rank_code
and a.p_no = e.p_no
and d.pa_code = e.pa_code
and e.pa_code like '102%'
AND nvl(A.TRADE_CODE, '000') = F.TRADE_CODE
and a.stat_code = '01'
and a.u_code = '21033'
and a.p_no in (SELECT x.P_NO
FROM PJ_PERM_ALL_DEDU1 x
WHERE A.P_NO = x.P_NO
AND x.PA_CODE like '105%'
AND X.VALUE > 0)
AND SUBSTR(E.PA_CODE, 6, 1) NOT IN ('2')
AND E.VALUE > 0
我正在使用这个简单的查询,但它挂在我的本地PC上与本地数据库。但是当数据库在linux上时,同样的查询执行完美。我以前用linux连接的意思很完美。但是,当我使用本地数据库进行toad时,它会挂起并显示无响应。
为什么会这样?