Give me some examples of predefined exceptions.

Answer Posted / glibwaresoftsolutions

Predefined exceptions in PL/SQL include:
• NO_DATA_FOUND: Raised when a SELECT statement returns no rows.
• TOO_MANY_ROWS: Raised when a SELECT INTO statement retrieves multiple rows.
• DUP_VAL_ON_INDEX: Raised when attempting to insert a duplicate value into a specific index.
• ZERO_DIVIDE: Raised when dividing by zero.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you view the errors encountered in a trigger?

732


How to change the order of columns in Oracle SQL Plus ?

788


Can primary key be changed?

665


Does execute immediate commit?

926


What is the usage of nvl function?

769






What is a behavioral trigger?

692


How can check sql version from command line?

719


Why is %isopen always false for an implicit cursor?

765


Does varchar need length?

711


What is the difference between inner join and natural join?

701


how would you write a query to select all teams that won either 2, 4, 6 or 8 games? : Sql dba

1079


What are the most important characteristics of pl/sql?

782


What are the different parts of a package?

810


how do you know if your mysql server is alive? : Sql dba

778


How to select 10 records from a table?

836