Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is pragma exception and how, when, where us

Answers were Sorted based on User's Feedback



What is pragma exception and how, when, where us..

Answer / shaik

Pragma Exception is a pre-compiled exception which is
particularly used to raise the user defined exceptions along
with the ORACLE error code.

PRAGMA EXCEPTION_INIT(exception_name, -Oracle_error_number);

ANY FURTHER CLARIFICATION CALL TO ME :09972372227

Is This Answer Correct ?    12 Yes 2 No

What is pragma exception and how, when, where us..

Answer / guru

The PRAGMA EXECPTION_INIT tells the complier to associate an
exception with an oracle error. To get an error message
of a specific oracle error.

e.g. PRAGMA EXCEPTION_INIT (exception name, oracle error
number)


Example

declare
salary number;
FOUND_NOTHING exception;
Pragma exception_init(FOUND_NOTHING ,100);
begin
select sal in to salaryfrom emp where ename ='ANURAG';
dbms_output.put_line(salary);
exception
WHEN FOUND_NOTHING THEN
dbms_output.put_line(SQLERRM);
end;

Is This Answer Correct ?    10 Yes 3 No

What is pragma exception and how, when, where us..

Answer / guest

Its bad to see that Questions are not asked properly, and next is, people are not answering correctly, but no one is questioning them back.

Eg:- What is pragma exception and how, when, where us ...

Shaik --
Its not a Pre compiled exception, it is a Compiler Directive which has special meaning to this keyword.

Amit Kumar--
The Error range is from -20000 to -20999

Ramesh--
Your question is not clear.
eg:-How it compiler find?....

Guys Please be serious, as this is a good place to learn and share knowledge. Anyone who is really looking for interview questions will get wrong answers in their preparation

regards
j

Is This Answer Correct ?    7 Yes 0 No

What is pragma exception and how, when, where us..

Answer / amit kumar dwivedi

pragma is compiler directive and pragma exception_init is
used to associate user deifined name to error number(within
range of 20000-20999).

Is This Answer Correct ?    6 Yes 6 No

What is pragma exception and how, when, where us..

Answer / ramesh

How it compiler find. your answer will not fit my problem.

Is This Answer Correct ?    0 Yes 5 No

Post New Answer

More SQL PLSQL Interview Questions

which tcp/ip port does sql server run on? : Sql dba

0 Answers  


how to escape special characters in sql statements? : Sql dba

0 Answers  


If you want a column to be part of the result set, after which SQL keyword does it belong? 1. SELECT 2. FROM 3. WHERE 4. GROUP BY 5. HAVING

10 Answers   HCL, TCS,


How do I count duplicates in sql?

0 Answers  


How do I view output in sql developer?

0 Answers  


What is difference between joins and union?

0 Answers  


Can we join two tables without common column?

0 Answers  


How do I save a stored procedure?

0 Answers  


Show how functions and procedures are called in a pl/sql block.

0 Answers  


Does varchar need length?

0 Answers  


How can we find duplicate records in a table?

0 Answers  


Is it possible for a table to have more than one foreign key?

0 Answers  


Categories