This question already has an answer here:
I'm quite new to PL/SQL and I need to get the names and count of the distinct characters in a string. E.g. if I have a string str="helloexample"
, I need to get output of distinct characters in str
, i.e. heloxamp
.
How can I do this?
You can use regular expression as follows:
the answer would be:
if WM_CONCAT isnt working for you, you can use this trick: