RE: DBIx::Recordset and Oracle
- From: jobmiller@xxxxxxxxx (Job Miller)
- Date: Wed, 27 Jul 2005 03:40:40 -0700 (PDT)
>Here's an Oracle-native string SQL example, which may contain errors:
It does contain a small error that can make a huge difference.
In a stateless environment, the correct way to do this is:
select *
from ( select a.*, rownum rnum
from ( YOUR_QUERY_GOES_HERE -- including the order by ) a
where rownum <= MAX_ROWS )
where rnum >= MIN_ROWS
/
It is the only way to paginate a result set in Oracle without doing lots of extra work.
So while I don't use DBIx:Recordset, if it generates anything other than the above sql for you, you are doing lots of unnecessary work and this indepedence thing would once again be biting you because you hadn't ever searched the archives at asktom.oracle.com
http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:127412348064
---------------------------------
Start your day with Yahoo! - make it your home page
- References:
- RE: DBIx::Recordset and Oracle
- From: Darren Duncan
- RE: DBIx::Recordset and Oracle
- Prev by Date:
RE: DBIx::Recordset and Oracle - Next by Date:
Re: DBD-Oracle-1.16 (make error) - Previous by thread:
RE: DBIx::Recordset and Oracle - Next by thread:
Re: DBD-Oracle-1.16 (make error) - Index(es):