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

Home -> Community -> Usenet -> c.d.o.misc -> Re: select any row?

Re: select any row?

From: Dirk Schwarzmann <Dirk.Schwarzmann_at_gmx.de>
Date: Tue, 2 Nov 2004 11:34:07 +0100
Message-ID: <2up64rF2dp8kpU1@uni-berlin.de>


Turkbear wrote:
> Bricklen <bricklen_at_zyahoo.zcomz> wrote:
>> try
>> select /*+ first_rows */ * from myview where rownum<2;
>
> Also try
>
> SELECT * FROM MYVIEW WHERE ROWNUM = 1;
>
> But much depends on the view's code..

It might be also a matter of the view´s code but nevertheless, Bricklens tip using the optimizer hint sped up the query very much. I tried using rownum = 1 before but it had no noticable effect :(

Thanks for all your help,
Dirk Received on Tue Nov 02 2004 - 04:34:07 CST

Original text of this message

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