GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Tech FAQs  >  PL/SQL
Go To First  |  Previous Question  |  Next Question 
 PL/SQL  |  Question 47 of 166    Print  
Hi,

We have to select some rows from a table using many conditions in the where clause. Then we have to write those selected rows to one flat file. I know that we can use UTL_FILE package to do this. Is there any better approach to do this??

  
Total Answers and Comments: 5 Last Update: August 12, 2008     Asked by: Ritesh 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
September 30, 2006 08:07:47   #1  
sri        

RE: Hi,We have to select some rows from a ...

Hi

we can write those selected rows into file by using spool ;


 
Is this answer useful? Yes | No
October 06, 2006 06:32:53   #2  
Mohammed Rafeqh        

RE: Hi,We have to select some rows from a ...

There is no proper response


 
Is this answer useful? Yes | No
February 13, 2007 15:05:14   #3  
geetha24 Member Since: March 2006   Contribution: 27    

RE: Hi,We have to select some rows from a ...
As far I know UTL_FILE is the only way to write to operation system file.
 
Is this answer useful? Yes | No
March 27, 2007 03:56:23   #4  
hindol_saha Member Since: March 2007   Contribution: 15    

RE: Hi,We have to select some rows from a ...
spool c:filename.txt
select * from tab where ................;
spool off;
goto c: and check it.i think it is the easyest way to store some data from oracle to flat file...u can save it in any extension like .csv.xls.txt ect............

 
Is this answer useful? Yes | No
August 12, 2008 02:15:33   #5  
rajivgupta780184 Member Since: August 2008   Contribution: 32    

RE: Hi,We have to select some rows from a table using many conditions in the where clause. Then we have to write those selected rows to one flat file. I know that we can use UTL_FILE package to do this. Is there any better approach to do this??
yOU CAN USE TEXT_IO.PUTLINE INBUILTS

OR YOU CAN USE THE SPOOL FUNCTION
BOTH ARE APPLICABLE

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape