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 db journal file?
What is data control language (dcl)?
How do I truncate a sql log file?
What is a crud api?
What are the types of join and explain each?
What is a recursive join sql?
What are different types of sql?
What are the main features of cursor?
What is recursive stored procedure?
Can sql developer connect to db2?
What is difference sql and mysql?
What is a temporal table?
What is tuple in sql?
What is a ddl command?
How do I kill a query in postgresql?