all_terms_idm.standard_date Between #1/1/2007# And #1/31/2007#
OR:
where dt_col between to_date( '01-jan-2002 00:00:00', 'dd-mon-yyyy hh24:mi:ss' )
and to_date( '17-jan-2002 23:59:59', 'dd-mon-yyyy hh24:mi:ss' )
or if you just wanted to supply the days as bind variables (in the form of a string like
'01-jan-2002') you could:
where dt_col between to_date( :bv1, 'dd-mon-yyyy' )
and to_date( :bv2, 'dd-mon-yyyy' ) + (1-1/24/60/60)
that would do the same (adding 1-1/24/60/60 adds 23:59:59
If you are using the mod_plsql module, you should see database sessions that are
connected persistently in "stateful" mode. (query v$session). changing from stateless to
stateful wont necessarily affect performance unless you have lots of requests coming in
simultaneously and actually connecting to the database is the bottleneck (on a smallish
system, this will not be the case). if the PLSQL code or SQL code is what is slow, this
setting won't make a bit of difference! Use tools like dbms_profiler and tkprof to check
this.
Please post back if you have any more problems or questions.