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 do you identify a primary key?
Practice 1: Changes to data will only be allowed on tables during normal office hours of 8.45 in the morning until 5.30 in the afternoon, MONDAY through FRIDAY. A. Create a procedure called SECURE_DML that prevents the DML statement from executing outside of normal office hours, returning the message: “you may only make changes during normal office hours” b. Create a statement trigger on the PRODUCT table which calls the above procedure. c. Test it by inserting a new record in the PRODUCT table.
How does a self join work?
What are the events on which a database trigger can be based?
Why is nosql good?
How do you respond to dementia behavior?
The select into statement is most often used to create backup copies of tables or for archiving records?
what is bcp? When does it used? : Sql dba
What is pivot query?
How do I upgrade sql?
Can we use pl sql in sql server?
what are null values? : Sql dba