DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: Limiting output from SQL statement

  1. #1
    Join Date
    Feb 2001
    Posts
    27
    I have gone brain dead today. What is the command to limit the output of a select statement? Example: If the select statement runs, I get 200 rows, but I only want to see the first 10 rows of data. My brain keeps thinking the command is "Select * from EMP limit to 10 rows;" but I know that is not correct.

    Thanks.

  2. #2
    Join Date
    Aug 2001
    Location
    INDIA DELHI
    Posts
    4
    Originally posted by smcdmc
    I have gone brain dead today. What is the command to limit the output of a select statement? Example: If the select statement runs, I get 200 rows, but I only want to see the first 10 rows of data. My brain keeps thinking the command is "Select * from EMP limit to 10 rows;" but I know that is not correct.

    Thanks.
    Command for limiting selected rows is :
    Select * from emp where rownum < 10

    Enjoy

  3. #3
    Join Date
    Feb 2001
    Posts
    27
    Thank you!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width