How can I count number of occurrences of the character - in a varchar2 string?
-
Example:
select XXX(\'123-345-566\', \'-\') from dual; --
select count(*) from ( select substr('K_u_n_a_l',level,1) str from dual connect by level <=length('K_u_n_a_l') ) where str ='_';