Byte My Data

A personal collection of advice and solutions I've used.

About the author

Something about the author

MS SQL TOP equivelant in Oracle

Original Post:

http://bytes.com/topic/oracle/answers/631642-top-10-rows#post2501910

For top row just use the magic column rownum:

SELECT * FROM your_table WHERE rownum <= 10;

If you want bottom row you can order it before (using ORDER BY your_field DESC)


Categories: Databases
Permalink | Comments (0) | Post RSSRSS comment feed

Comments

Add comment




  Country flag

biuquote
  • Comment
  • Preview
Loading