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: Limiting the number of returned rows with Oracle

Re: Limiting the number of returned rows with Oracle

From: DNP <High.Flight_at_btinternet.com>
Date: 2000/06/06
Message-ID: <393D4629.62A1@btinternet.com>#1/1

Oracle recommend using a PL/SQL module, which selectively fetches the chosen number of 'rows' from a cursor declared within PL/SQL. It's not as simple as some RDBMSes which have a TOP keyword which is useable in SQL natively.

It all boils down to the relational aspect of Oracle's tuples i.e. Oracle (at a logical level) doesn't think in rows at all - only tuples (depending on your selection criteria). Of course it uses ROWIDs etc. to go and fetch rows physically.

David P. OCP (DBA) MCP (TCP/IP)

Glasgow, Scotland.


Received on Tue Jun 06 2000 - 00:00:00 CDT

Original text of this message

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