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 are all different types of collation sensitivity?
wht is the difference between truncat,drop in sqlserver wht is the difference between function and stored procedure
What is the use of sqlerrd 3?
How do I tune a sql query?
What is clustered index in sql?
What is a crud api?
What is keys and its types?
What are views in sql?
what is a database lock ? : Sql dba
What is the purpose of the primary key?
What is normalization ?
9 Answers BirlaSoft, CTS, HCL,
Does pl/sql support create command?