Job Seekers   Employers
dbapool: Authors | Submissions | Contact Us
   Forgot password? | Sign up
  Home   Discussion Forum   Articles   Interview Questions   FAQs   Scripts   Rewards   Analyzer   White Papers   Blog   Certification   Downloads   Tools
 

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.



  


 Title: pAGE LENGTH
 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

  




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 Khokhar857
  Mohammed Taj746
  positive fanatic483
  Jayanta Sur479
  Vigyan Kaushik386
  Gopu Gopi327
  Gitesh Trivedi322
  Vinoth Kumar264
  neeraj sharma258
  Ramesh Jois246






oracle Mag



  About Us Advertise Terms of Use Privacy Newsletters Contact Us    

Home   Discussion Forum   FAQs  Articles  Jobs   Newsletters  Directory  Downloads 

Our Premium Sponsor
Confio Software