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: LIMIT number of selected rows

Re: LIMIT number of selected rows

From: Hans Forbrich <hforbric_at_yahoo.net>
Date: Sat, 24 Jan 2004 21:28:11 GMT
Message-ID: <4012E2C9.7F4AB1D0@yahoo.net>


Georg Maaß wrote:
>
> Hi,
>
> what is the Oracle SQL syntax to limit the number of rows returned by a
> select.
>
> MS-SQL supports TOP to do this:
>
> select TOP 1 * from stuff;
>
> But what is the correct syntax for Oracle to get only the first entry?
>
> Greetings, Georg

What is the definition if 'first entry'?

(AFAIK: Neither the SQL language nor relational theory has any sense of order; Both explicitly state that the retrieval order is independent of insertion order and any correlation is coincidental.) Received on Sat Jan 24 2004 - 15:28:11 CST

Original text of this message

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