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 the default isolation level in sql server? : Transact sql
how to create a table index in mysql? : Sql dba
How to find 3rd highest salary of an employee from the employee table in sql?
Can we commit in trigger?
What is procedure explain with example?
What operators deal with null?
How do you update a value in sql?
How many row comparison operators are used while working with a subquery?
how to use 'mysql' to run sql statements? : Sql dba
How to run pl sql program in mysql?
What program will open a mdb file?
Can we rollback after truncate?
Can a select statement fire a trigger?
How long will it take to learn pl sql?
what are the maximum number of rows that can be constructed by inserting rows directly in value list? : Transact sql