我有一条SQL语句里面有一个,查询列中有一个函数,在应用中取值需5秒,在PL/SQL中需要16秒,
如果去掉查询函数,则只需要2秒,但是应用中依然是5秒,语句如下
select cc_STATUS ccstatus
,c3o7.c3get_desc('ZH','UCOD', e.cc_status,'EVST', '') ccstatus_display
FROM c3ucodes u, c3events e
LEFT OUTER JOIN c3firstact a ON ( a.act_event = e.evt_code )
WHERE e.cc_rstatus IN ('Q', 'R', 'C')
AND e.cc_rtype IN ('JOB', 'PPM')
AND u.uco_rentity = 'JBTP'
AND u.uco_code = e.evt_jobtype
AND u.uco_rcode <> 'IS'
order by evt_created ASC
有没有大神知道是什么原