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 |
Why are cursors used?
Can We write bulk collect statement in triggers?
What will be the output of the following String S = 1+2+"abc" S = ? String S1 = 1+2+"abc"+5+6 S1 = ?
Is sql procedural language?
Can pl sql procedure have a return statement?
I have a table with 1 million records out of which 10,000 records are of unique records, then if I will implement index, then which type of index shall I use and why shall I use?
How do we accept inputs from user during runtime?
Name three sql operations that perform a sort.
How do I view a view in sql?
what is global temporary tables and how use that tables in pl/sql packages
Which is better varchar or nvarchar?
What can be a size of a pl/sql block? Is there any limit?
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)