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 |
How do you declare a variable in pl sql?
What does plv msg allows you to do?
What is the basic structure of an sql?
What is trigger types in sql?
How to call a javascript function from pl sql?
tell me about various levels of constraint. : Sql dba
What does select top 1 do in sql?
Why are indexes and views important to an organization?
what is 'mysqldump'? : Sql dba
Is pl sql better than sql?
HOW TO TUNE ORACLE SQL QUERIES GIVE ME STEP BY SREP
what are the 'mysql' command line arguments? : Sql dba
Oracle (3259)
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)