Give an example of any procedure.
Answer Posted / dev lamani
create or replace procedure Data_Ho(region number,proc
number) is
Data_Not_there exception;
cnt number;
Begin
select count(*) into cnt
from vhub.op_fertilizer_sta_tran
where proc_monyr=proc and region_code=region;
if cnt>=0 then
insert into op_fertilizer_sta
select * from op_fertilizer_sta_tran
where proc_monyr=proc and region_code=region;
else
raise Data_not_there;
end if;
exception
when Data_not_there then
dbms_output.putline('There is no Data Available for this
month for Insertion'|| ' ' || proc);
End;
Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
Name the operator which is used in the query for pattern matching?
How many types of relationship are there?
Is it possible to link two groups inside a cross products after the cross products group has been created?
What does <> sql mean?
What is primary key sql?
What is a design view?
How exception is different from error?
How can get second highest salary in sql?
What is partition by in sql?
Why is normalization important?
What are the parts of a sql statement?
What is schema in sql example?
What is scalar and vector?
Explain lock escalation? : Transact sql
How do you get column names only for a table (sql server)?