if i have a procedure with 1000 line.when i run this in 61 line i got the error but i want to continue the programe without error.can anyone tell me how to handle that error.

Answer Posted / ana

Enclose the 61th line in a begin-exception-end block and in exception block have
when others then null;

so that when exception is raised in 61th line it will do nothing and continue with other lines of the 1000 line procedure.

eg:

Begin

Select * from emp ;

Exception

when others then
null;

End;

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In not less than 100 words what's the main difference between Rolap and Molap in ORACLE ?

1774


What are the differences between char and nchar in oracle?

593


How do we get field details of a table?

547


Explain oracle insert into command?

626


Explain the use of online redo log files in oracle.

577






I just want to maintain data like an employee can belongs to 3 or more departments . We can resolve this by using composite key but it avoids normalization rules. So Can anyone tell me how can I maintain data.

1695


How to call a stored function with parameters?

561


List the types of joins used in writing subqueries?

569


What would you do with an in-doubt distributed transaction?

1466


Is insert autocommit in oracle?

601


What is oracle open database communication (odbc)?

555


Difference between hot backup vs. Cold backup?

602


Calculate difference between 2 date / times in oracle sql?

566


Can select statements be used on views in oracle?

587


What is the implicit cursor in oracle?

562