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
What is information schema in sql?
What is sequence in sql?
Define a temp table?
what is clause? : Sql dba
What is db journal file?
What is the difference between jpql and sql?
Is sql a programming?
What is record type in pl sql?
How can I make sql query run faster?
What has stored procedures in sql and how we can use it?
What is optimistic concurrency control? : Transact sql
how to enter numeric values as hex numbers? : Sql dba
What is trigger and how to use it in sql?
What is bulk compiling in pl/sql.?
explain commit and rollback in mysql : sql dba