Skip to Main Content

ODP.NET

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!

ExecuteScalar and Stored Function

392766Jul 25 2003 — edited Jul 28 2003
Hi,

I am trying to execute a simple function through ExecuteScalar, but keep on getting an error that this is not a StoredProcedure.

What am I missing. I am not passing any parameters and also not setting any "RETURN_VALUE" param.


CREATE OR REPLACE FUNCTION GetEmpSal()
return number as

aSal number;

begin
select sal into aSal from devemp where empno=pEmpNo;
return aSal;
end;
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 25 2003
Added on Jul 25 2003
2 comments
673 views