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

Home -> Community -> Usenet -> c.d.o.server -> Dynamic pl/sql

Dynamic pl/sql

From: Kenneth C Stahl <BluesSax_at_Unforgettable.com>
Date: Tue, 31 Aug 1999 08:46:55 -0400
Message-ID: <37CBCEBF.1F843F58@Unforgettable.com>


I have a need to run remote pl/sql procedures from within a pro-c program. The procedure will always have the same name, however, the datatype of the input/output parameters will change and the procedure name will be overloaded within the package to accomodate the different combinations of parameters.

Since the types of parameters that will be needed are not known until run-time I need to be able to construct the calling pl/sql routine dynamically. In a vague sort of way this is basically what I want:

int myfunc (parameters)
{

    char plsql[500];

    plsql = <logic to build a string containing a plsql block>

    exec sql execute
    plsql;
    end-exec;
}

Has anyone done this type of thing? Any code examples? Received on Tue Aug 31 1999 - 07:46:55 CDT

Original text of this message

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