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: SQL Query

Re: SQL Query

From: TurkBear <johng_at_mm.com>
Date: Thu, 27 Jan 2000 17:26:21 GMT
Message-ID: <38907f05.68210421@204.181.81.99>


Actually it depends on what you mean by 'first' record...

The ..rownum < 2 will return the first record retrieved by the select statement ( after any where... and order by... statements have been processed) but that is not necessarily the 'first' record in the table..

Just my 2c
.
Andreas Michler <Andreas.Michler_at_adicom.de> wrote:

>select ............ where rownum < 2
>
>
>Kinna Patel wrote:
>
>> How can I write an SQL query which will return the first record in a
>> recordset. Under SQL Server 7 you can use the keyword TOP but this
>> does not work under Oracle.
>>
>> Thanks in advance

  -----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------    http://www.newsfeeds.com The Largest Usenet Servers in the World! ------== Over 73,000 Newsgroups - Including Dedicated Binaries Servers ==----- Received on Thu Jan 27 2000 - 11:26:21 CST

Original text of this message

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