How can i count the number of 'a' in the string 'rajarajeshwari'
I want count of 'a' in that string
How can i count the number of 'a' in the string 'rajarajeshwari'
I want count of 'a' in that string
You can try like this
select length('rajarajeshwari') - length(replace('rajarajeshwari','a',null))
from dual;
or you can also use the REGEXP_COUNT function
select REGEXP_COUNT('rajarajeshwari', 'a') from dual;