counting the no.of characters occurs in a string by using
pl/sql function
Answer / 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 |
How to avoid using cursors? What to use instead of cursor and in what cases to do so?
What is Data Concarency and Consistency?
What are the subsets of sql?
Can a table have two primary keys?
Enlist the advantages of sql.
SELECT ROUND(TRUNC(MOD(1600,10),-1),2) FROM dual;
Can you have multiple SPs with the same name on a database?
Is sql a scripting language?
how to include numeric values in sql statements? : Sql dba
Which one is better subquery or joins?
What is normalisation in sql?
What is the process of debugging?