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 does cursor do in sql?
What is a string data type in sql?
What is varchar used for?
What is normalisation in sql?
What is a database trigger?
Is a view faster than a stored procedure?
Is a table valued function object?
How can I tell if sql is running?
Is nosql faster than sql?
What are few of the schema objects that are created using PL/SQL?
What is type and rowtype in pl sql?
define sql delete statement ? : Sql dba
What is compound trigger?
What is rollback?
Which function is used to return remainder in a division operator in sql?