Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> OCI question
Hello All,
My department is developing a system written in C which uses
Oracle OCI
to connect with our Oracle database (version 7.1 for Windows 3.11). We
need to execute some functions and storage procedures created in our
database, so we are executing
PL/SQL statements which call these functions and procedures.
The problem is that we neither know how to get the result of a
function
nor the value of an OUT parameter of a storage procedure into a variable
of the C program, using the OCI binding functions.
Someone suggests us to execute the following tricky SQL statement
SELECT func1() FROM DUAL;
and then fetch the result, using the fetching OCI functions. But we would like to execute functions in anonymous PL/SQLstatement
BEGIN x:= func1(); END; and get (somehow) the value of the variable x into a variable ofthe
Does anyone have the answer? Thanks in advance !! MarcosReceived on Sun Aug 03 1997 - 00:00:00 CDT
![]() |
![]() |