Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: limiting rows returned ?
Gopal wrote:
>
> Hi Folks,
>
> We are using Oracle 7.3.x on Win/Nt 3.51.
>
> I am new to Oracle and I have a question about limiting the rows
> being returned by a select statement.
>
> In MS SQL Server or Sybase you can say
> set rowcount 1
> select * from ...
>
> and only one row will be returned.
>
> Is there a similar option in Oracle which can be used in SQL plus and
> stored procedure ?.
>
> Regards
>
> Gopal
>
> please email to gopal_at_astro.ocis.temple.edu
select * from table where rownum = 1
this is not exactly the same as "set rowcount", but it is the only
option that I am aware of
-- ____________________________________ Oleg Dimerman (olegd_at_e-mail.com)Received on Wed Apr 16 1997 - 00:00:00 CDT
![]() |
![]() |