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!

how to remove comma from column

Rajesh123Aug 15 2017 — edited Aug 15 2017

Hi All,

select 'abc' TEST1 from dual

union all

select 'abc,abc1' TEST1 from dual

so  i have to use

if TEST1  is not null then

TEST1 ||',';

end if;

but in the output abc, is printing , so i need to remove comma if TEST1 is having only one value.

Can you please help me?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 12 2017
Added on Aug 15 2017
9 comments
832 views