How do you handle exceptions. Give the syntax for it?
Answer Posted / guest
declare
khali exception;
a number(8);
b number(8);
begin
select count(*) into b from &table_name;
dbms_output.put_line('value of b is '||b);
if b = 0 then
raise khali;
end if;
exception
when khali then
dbms_output.put_line('are ye table to khali
nikali');
when others then
select NUM into a from furzi2;
dbms_output.put_line('Others');
end;
/
| Is This Answer Correct ? | 10 Yes | 0 No |
Post New Answer View All Answers
How do I find duplicates in sql?
What is out parameter used for eventhough return statement can also be used in pl/sql?
How to write html code in pl sql?
how many ways we can we find the current date using mysql? : Sql dba
What is pl sql package?
How to download oracle sql developer?
How do you write a complex sql query?
Why select is used in sql?
Do we need commit after truncate?
What are views in sql?
What is a dirty read sql?
Sql technical questions
What is the difference between cross join and natural join?
Why functions are used in sql?
what is cursor. write example of it. What are the attributes of cursor.