I have a form that exports tbl data.
The tbl columns have changed over time, so I'd like to build the columns that should be exported on the fly. I'm using the TEXT_IO package.
Right now I have:
------------------------------------------------------
for tbl_rec in tbl_cur loop
output_string:= tbl_rec.field1 || ' ' || tbl_rec.field2;
end loop;
------------------------------------------------------
I would like:
------------------------------------------------------
for tbl_rec in tbl_cur loop
output_string := ........Not sure.......
end loop;
------------------------------------------------------
I then use the TEST_IO to export the output_string variable.
I'd like to build the fields on the fly. I've already created a loop concatencating column names from user_tab_columns and passing that into the cursor above, but all that does is return the column name the number of records in the tbl
Any ideas? or packages you can think of?
Thx in advance for any help