Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Writing text file from PL/SQL block
hi list,
I have a strange but interesting problem. I have three tables with below structure , I need to generate a text file using a PL/SQL block on the basis of below criteria:
Table1 structure
table2 structure
table3 structure
scenario1
i have to generate a text file from PL/SQL block wherein table1 column data should be written based on the position mentioned in table3. for example if dealerid is in 3 position,name is in 1 and age is in 2 position then my text file should contain data something like :
name,age,position
Scenario2
I know it can only be done using UTL_FILE package but dont know how to achieve it? I would really be obliged if anyone can provide with a sample block to achive this to me.
Please
-- http://www.freelists.org/webpage/oracle-lReceived on Mon Sep 03 2007 - 04:35:51 CDT