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 normalization means?
How much does sql certification cost?
How do you go back in sql?
define sql delete statement ? : Sql dba
Can we declare a column having number data type and its scale is larger than pricesionex: column_name number(10,100),column_name numbaer(10,-84)
What is clustered index sql?
Why is stored procedure faster than query?
Is ms sql traffic encrypted?
what is user defined functions? : Sql dba
What is crud stand for?
What are the different types of dbms?
What do you mean by stored procedures? How do we use it?
how to do backup entire database? : Transact sql
What are the features of pl sql?
Which sql most popular?