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 the advantages of package?
Can we use update in sql function?
what is a constraint? Tell me about its various levels. : Sql dba
Can you selectively load only those records that you need? : aql loader
what are all the common sql function? : Sql dba
Explain polymorphism in pl/sql.
How to add, remove, modify users using sql?
Is natural join same as inner join?
explain about mysql and its features. : Sql dba
What is the difference between the repeatable read and serializable isolation levels? : Transact sql
what is a constraint? : Sql dba
Name the different types of indexes in sql and define them.
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)