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 are basic techniques of indexing?
What are different types of sql commands?
Difference between truncate, delete and drop commands?
How do I count records in sql?
how to do backup entire database? : Transact sql
How do I write a sql query in pgadmin 4?
What is ttitle and btitle?
what is error ora-03113: end-of-file on communication channel?
How delete a row in sql?
Does sql full backup truncate logs?
What is the most common sql injection tool?
Explain the advantages and disadvantages of stored procedure?
what is a scheduled jobs or what is a scheduled tasks? : Sql dba
What does the argument [or replace] do?
What are the different dml commands in sql?