Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling Oracle Packages from SQL Passthrough
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00525330
Message ID:
00525402
Vues:
34
This message has been marked as the solution to the initial question of the thread.
>So in other words I could do something like:
>
>lcSql = "SELECT *,SOMPACKAGE(PARAMETERS,PARAMETERS) AS ColumnWhatEver "
>lcSql = lcSql + " FROM SomeTableInOracle WHERE ...."
>
>lnResult = SQLEXEC(lnConn,lcSql,'MYNEWCURSOR')
>
>Would this be feasible?

Oh, you want to use it to return a value and not a record set. Yes, this is very feasible. You will have to change the Package call to the Package.Function call but that the only problem I see.

Think of a package as a Procedure file with functions embedded in it. Since there is no SET PROCEDURE TO in Oracle, you need to specify the package and the embedded function.

SomePackage.SomeFunction(Parameter, Parameter) as ColumnWhatEver
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform