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: to sqlplus expert. - is this sqlplus version problem?

Re: to sqlplus expert. - is this sqlplus version problem?

From: Rene Nyffenegger <rene.nyffenegger_at_gmx.ch>
Date: Fri, 14 Oct 2005 18:27:57 +0000 (UTC)
Message-ID: <diotbd$g20$1@klatschtante.init7.net>


On 2005-10-14, jdyang <jdyang82_at_gmail.com> wrote:
> Hello. I'm newbie of sqlplus.
>
> I use sql plus 8.1.5.0.0.
>
> I want to get row between 3 to 5. like,
>
> select * from table where rownum >= 3 and rownum =< 5;
>
> and when I use above query, there is no record.
>
> I found reason from google that rownum is attached to row when that row
> pass the where condition.
> And from another webpage, I found the message that those query are
> working well.
>
> how I can get row between 3 to 5. Above query is just version problem?
>
> Infact, I'm using temporary query:
> select * from
> ( select <column names>, rownum as temp_rownum where <table> )
> where temp_rownum >= 3 and temp_rownum <=5;
>
>
> and surely, I'm not satisfied.
>
> Can you help me please? - to sql experts.

See http://www.adp-gmbh.ch/ora/sql/examples/first_rows.html

hth, Rene

-- 
  Rene Nyffenegger
  http://www.adp-gmbh.ch/
Received on Fri Oct 14 2005 - 13:27:57 CDT

Original text of this message

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