Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

sqlerrm and sqlcode doubt(S)

439412Sep 11 2005 — edited Sep 11 2005
Hi,
well sqlerrm and sqlcode are functions, so while handing exceptions raised we can use the return values, but at the same time i cannot use it in a sql query, what is the reason behing it?, see the following piece of code,

x := sqlcode;
error_message := sqlerrm;

works, but

select sqlcode,sqlerrm into x,error_message from dual, when specified in the exception handling part, woudn't work?

why is it so???

cheere
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 9 2005
Added on Sep 11 2005
1 comment
671 views