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: ROWNUM for Page selection

Re: ROWNUM for Page selection

From: Noel <tomekb_at_s_o_f_t_m_a_n.pl>
Date: Fri, 07 Jan 2005 13:51:41 +0100
Message-ID: <crm0qu$dq7$1@inews.gazeta.pl>


Dnia 1/7/2005 12:44 PM, Użytkownik Daniel Paetzold napisał:

> Hello and happy new year NG ;),
> is there any better solution for the following query
>
> select a from (select a, ROWNUM "ROW_SUB" from t where ROWNUM<=200)
> where "ROW_SUB">100;
> to select only rows 101 to 200 from the tabledata?

Yes, add primary key to table, then fill it from sequence then choose rows from 101 to 200 using this command.

There is no "rows 101 to 200" in whole Oracle, and ROWNUM is temporary PSEUDO-column.

-- 
Noel
Received on Fri Jan 07 2005 - 06:51:41 CST

Original text of this message

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