-
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.
-
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
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|