To find out the substring and concat with field separator
Posted: Sun Jan 24, 2010 8:50 pm
Hi,
I have a column DESC_ which has values like the below one
DESC_
-----------
ABC
ABCXYZ
XYZ
NULL
ZZZAAABBB
I need to append comma after every 3 character.
DESC_
-----------
ABC
ABC,XYZ
XYZ
NULL
ZZZ,AAA,BBB
Please hint me with some logic to accomplish this.
Many Thanks
MSR
I have a column DESC_ which has values like the below one
DESC_
-----------
ABC
ABCXYZ
XYZ
NULL
ZZZAAABBB
I need to append comma after every 3 character.
DESC_
-----------
ABC
ABC,XYZ
XYZ
NULL
ZZZ,AAA,BBB
Please hint me with some logic to accomplish this.
Many Thanks
MSR