Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

seeking simple example pl/sql to create text file from table data

239238May 22 2008 — edited May 24 2008
hello,


I am hoping someone can provide very simple example of creating a file on my local harddrive using a pl/sql program. The basic steps are as follows:


First, I store some text in a varchar2 variable like this:


1. select sometext into otextvar from mytable where recordid = 1;


Second, I want this text to become a file in my data directory:


2. c:\data\sometext.txt


The second step is where I need help.


Any suggestions are greatly appreciated.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 21 2008
Added on May 22 2008
6 comments
2,547 views