How do you handle exceptions. Give the syntax for it?
Answer / 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 |
what is the purpose of update command in oracle?
what are the differences between require and include, include_once and require_once? : Sql dba
What does where 1 1 mean in sql?
What found sql?
what is commit? : Sql dba
Is delete faster than truncate?
Give me some examples of predefined exceptions.
What is dbo in sql?
what is the difference between cursor FETCH and FOR LOOP ?
3 Answers CG-VAK, Tech Mahindra,
What is the difference between partitioning and sharding?
What is the starting oracle error number? What is meant by forward declaration in functions?
What are the parts of a sql statement?