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 |
Name the different types of indexes in sql and define them.
What packages(if any) has oracle provided for use by developers?
What are the new features in Oracle 10g. Compared to Oracle 9i?
what is the output of this query selet * from employee where 1=2 ??
what is sql profiler
What is the Diff b/w Constraints and Trigeer
How to access the current value and next value from a sequence?
what are null values? : Sql dba
How is pl sql different from sql?
How many aggregate functions are available there in sql?
there is A table and B table in A table there 5 rows and in b table there are 2 rows i am firing query select * from a,b what will be the output?
What does where 1/2 mean in sql?