Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/webpack/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Plsql 如何使用zxjdbc调用过程并返回参数?_Plsql_Jython_Python 2.x - Fatal编程技术网

Plsql 如何使用zxjdbc调用过程并返回参数?

Plsql 如何使用zxjdbc调用过程并返回参数?,plsql,jython,python-2.x,Plsql,Jython,Python 2.x,如果我使用官方的例子 我得到一个错误: PLS-00306:调用“FUNCOUT”时参数的数量或类型错误 ORA-06550:第1行第7列:PL/SQL:语句被忽略 答案为,但运行带有OUT参数的示例失败。您能给出一个使用OUT参数的示例吗 >>> c = db.cursor() # open the database as in the examples above >>> c.execute("create or replace function func

如果我使用官方的例子

我得到一个错误:

PLS-00306:调用“FUNCOUT”时参数的数量或类型错误
ORA-06550:第1行第7列:PL/SQL:语句被忽略

答案为,但运行带有OUT参数的示例失败。您能给出一个使用OUT参数的示例吗

>>> c = db.cursor() # open the database as in the examples above
>>> c.execute("create or replace function funcout (y out varchar2) return varchar2 is begin y := 'tested'; return 'returned'; end;")
>>> params = [None]
>>> c.callproc("funcout", params)
>>> print params
['tested']