Skip to Main Content

SQL & PL/SQL

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!

A column value has comma which leads to different columns when exported into a CSV file

User_UH6TPJun 16 2021

I have columns which needs to be generated as CSV file. The problem is that one column value has three commas in it. so it creates three seperate columns in CSV file.

E.g

Select DOC_TITLE AS "Document_Title".

Value: STEELWORK DRAWINGS VESSELS (PLATFORMS, LADDERS, CATWALK) - UNIT 1400 TRAIN 6 STRUC. STEELWORK AREA 8 PLATFORM FOR V-1202

In the CSV file it gives me three columns

Column 1 = STEELWORK DRAWINGS VESSELS (PLATFORMS
Column 2 = LADDERS
Column 3 = CATWALK) - UNIT 1400 TRAIN 6 STRUC. STEELWORK AREA 8 PLATFORM FOR V-1202
I am using Oracle 11g and Oracle developer
What do I do in order to have the entire column value fit into one column in the CSV file
Appreciate any help.

This post has been answered by Pēteris Plūms on Jun 16 2021
Jump to Answer
Comments
Post Details
Added on Jun 16 2021
5 comments
3,600 views