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 row_number () in sql?
Can we use delete in merge statement?
What is sqlite used for?
How to run sql statements through the web interface?
What makes a good primary key?
Why is the cursor important?
how to convert numeric values to character strings? : Sql dba
What packages are available to pl/sql developers?
what are the advantages and disadvantages of cascading style sheets? : Sql dba
what is unique key constraint? : Sql dba
What is left join example?
How do you use a while loop in pl sql?
What is sql data?
Can 2 queries be executed simultaneously in a distributed database system?
what are aggregate and scalar functions? : Sql dba