Oracle UTL_FILE - multiple rows in excel for a single cell
- by user1879150
I have a requirement to display the below in a csv file which is generated using UTL_FILE package of PL/SQL.
Heading1 Heading2 Heading3
ABCDE 123 987641213
xxx street
yyyy
For each value in 'Heading1', I get 3 rows for address from a particular table.
In the output csv file, I need to display the address in a single cell with data separated by a new line.
I tried using a cursor and appending data using chr(10), chr(12), chr(15) but in vain.
Kindly help me in getting the output.