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
What is a rank in sql?
What is mutating trigger?
Can variables be used in sql statements?
How do we accept inputs from user during runtime?
In a distributed database system, can we execute two queries simultaneously?
What is sql trigger example?
How do I install microsoft sql?
What are the 3 modes of parameter?
how to return query output in html format? : Sql dba
what is the bond code in materialized view?
How do I enable sql encryption?
What is cross join sql?
table structure: ---------------- col1 col2 ----- ----- 01-mar-2012 11:12:46 01-mar-2012 11:12:10 01-mar-2012 11:12:46 01-mar-2012 11:11:23 Write a query to display the result as shown below: col1 col2 ----- ----- 01-mar-2012 11:12:46 01-mar-2012 11:12:10
What is character functions?
What is AUTH_ID and AUTH_USER in pl/sql ?