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
how can we repair a mysql table? : Sql dba
Is pl sql a scripting language?
What is trigger in sql? Explain
What is pl sql architecture?
How to set up sql*plus output format in oracle?
Do triggers have restrictions on the usage of large datatypes, such as long and long raw?
What is a column in a table?
Is time a data type in sql?
What is a crud api?
What is primary key and unique key?
what is offset-fetch filter in tsql? : Transact sql
What is sql and db2?
What is having clause in sql?
What is auto increment in sql?
what is the difference between a web-garden and a web-farm? : Sql dba