Topic: SQL*Plus and PL/SQL >> pAGE LENGTH
|
Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property.
You may review the entire Oracle Certification Program Candidate Agreement online Here.
|
|
|
|
| kunal |
Posted: Jun 11, 2007 11:55:00 AM |
Total Post: 3
Joined: May, 2007
|
HI FRIENDS,
I WANT TO KNOW BELLOW MANTIONED QUERY IS POSSIBLE IN 8I AND IF POSSIBLE PLEASE LET ME INFORM THE PROCEDURE TO DO IT
SELECT Name
FROM Customer
ORDER BY Name
This will select all customers in alphabetical order. Because there are millions of customers in the Customer table, we would like to show this list in pages, 40 customers at a time.
How might you change this query to return page 2, i.e. only the customers between positions 41 and 80 in the alphabetical list.
|
|
|
rajanikiran |
| Posted: Jun 12, 2007 05:31:32 AM | |
|
Total Post: 4
Joined: Nov, 2006
|
Hi,
Please use SQL * Plus Commands. In the Sql Prompt, give the following.
SQL> Set NewPage 0
SQL> Set Pagesize 40
SQL> Set linesize 80
SQL> Spool c:\test.txt
and then execute the query, it will spool into c:\test.txt file, you will get 40 records per page.
Thanks,
Kiran.
|
|
|
|
|
| Time Zone: EDT |
Send this thread to your friend |
|
|
|
|
Forum Rules & Description
Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user
|
| |
Get FREE Magazines
|
Top 10 Forum User
|
| Murtuja Khokhar | 857 |
| Mohammed Taj | 746 |
| positive fanatic | 483 |
| Jayanta Sur | 479 |
| Vigyan Kaushik | 386 |
| Gopu Gopi | 327 |
| Gitesh Trivedi | 322 |
| Vinoth Kumar | 264 |
| neeraj sharma | 258 |
| Ramesh Jois | 246 |
|
|