• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 826
  • Last Modified:

How to get only first rows of a recordset using Oracle DB

Hi,

Under SQL Server 2000 there is the keyword TOP, that force SQL Server to get only the first X rows (SELECT TOP 10 * FROM MyTable 'retieive only the first 10 rows)...

Is there an equivalent keyword under Oracle DB.

Tanks

David
0
dcampillo
Asked:
dcampillo
1 Solution
 
Parag_GujarathiCommented:
the equivalent is select * from myTable where rownum <= 10

cheers
Parag
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now