Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling stored procedure or view ??
Message
De
21/03/2011 14:35:02
Vladimir Zhuravlev
Institute of the Physics of Earth,Russia
Moscow Region, Russie
 
Information générale
Forum:
Oracle
Catégorie:
Déclencheurs, séquences et procédures stockées
Divers
Thread ID:
01503068
Message ID:
01504401
Vues:
37
1 No difference in calling Oracle view or table from VFP
for example
gdid=goods.id
sqlexec(hconn, 'select * from myschema.myview where gd_id=?gdid','mycursor')
2 Oracle procedure does not return cursor to vfp, only variable
make empty value in VFP for variable before calling procedure
put this variable to oracle procedure by reference like @myvar
for example
m.var='first value'
sqlexec(hconn,' begin demo.procname(?@var) ; end ;')
?var

This code will make cursor from variable
sqlexec(hconn,'declare vr=?m.var begin demo.procname(vr) ; end ; select vr from dual ;','mycurs')


Use Oracle packets instead, it can return cursor to vfp
Oracle packet can have procedure inside it
Calling Oracle function returns cursor
Sqlexec(hconn,'select demo.func(1) as rtval from dual','mycurs')
MVP-2006-2011, PHD in Math and Physics ,
host of www.foxclub.ru,
VFP lector at Interface and Microinform companies
Head science researcher of VNIIA Rosatom.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform