Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Questions on hard coded vs bind variable performance

Re: Questions on hard coded vs bind variable performance

From: Noel <tbal_at_go2.pll-l>
Date: Tue, 05 Apr 2005 09:26:05 +0200
Message-ID: <d2teja$4du$1@inews.gazeta.pl>


Użytkownik dave_93_98_at_yahoo.com napisał:

> Hello,
> Select trn.lot, MAX(txn_id) As txn_id
> into nLot, nID
> From transaction trn, history his
> Where trn.his_ID = his.his_ID
> -- And txntime between cStartTime and cEndTime
> And txntime between '20040904 000000000' and '20040905 000000000'
> Group by trn.lot
>

I would use to_date function and would check performance.

ex. to_date(SUBSTR(cStart_time,1,10),'RRRRMMDD');

-- 
TomekB tbal_at_spam_go2_trap.pl GSM:Plus 607598532
{Peugeot 306 ST, WY - 49245,       GG: 947-891}
Received on Tue Apr 05 2005 - 02:26:05 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US