counting the no.of characters occurs in a string by using
pl/sql function

Answer Posted / revathy

create or replace function f1(
iip in varchar2,iip2 in char)
Return number
is
tot number;
Begin
select (length(iip)-length(replace(iip,iip2))) into tot
from dual;
return tot;
end;

Is This Answer Correct ?    14 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

The select into statement is most often used to create backup copies of tables or for archiving records?

559


What is pl sql collection?

521


What is difference between inner join and self join?

586


What is not in sql?

493


How to look at the current sql*plus system settings?

604






How to use boolean type in select statement?

580


What is the usage of sql functions?

539


How do you use a while loop in pl sql?

532


What is difference between primary and secondary key?

515


Why we use sql profiler?

560


how can we repair a mysql table? : Sql dba

536


is mysql query is case sensitive? : Sql dba

558


what is the maximum length of a table name, database name, and fieldname in mysql? : Sql dba

617


What is the difference between clustered and non-clustered index in sql?

517


What is before trigger?

548