Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Invoke stored function from Pro*C

Re: Invoke stored function from Pro*C

From: HansF <News.Hans_at_telus.net>
Date: Sat, 09 Jul 2005 01:24:29 GMT
Message-Id: <pan.2005.07.09.02.23.39.699356@telus.net>


On Sat, 09 Jul 2005 08:00:24 +0800, Poh Tien Lye interested us by writing:

> I am trying to invoke a function stored on Oracle
> using Pro*C. However, the precompiler does not
> compile through. I have attached the code below:
> EXEC SQL EXECUTE
> BEGIN
> :nRefNum := getRefNo(szProductCode);
> END;
> END-EXEC;
>
> getRefNo() is the function in the database.
> a string is passed to the function and it returns
> an integer.
>
> Thanks in advance.

http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a97269/pc_07pls.htm#8703

Assuming you want assistance, instead of just a document reference, please consider providing Oracle version, and any messages from the compiler, are usually relevant information - "precompiler doesn't compile through" is generally meaningless to me.

-- 
Hans Forbrich                           
Canada-wide Oracle training and consulting
mailto: Fuzzy.GreyBeard_at_gmail.com   
*** I no longer assist with top-posted newsgroup queries ***
Received on Fri Jul 08 2005 - 20:24:29 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US