Plsql 如何使用zxjdbc调用过程并返回参数?
如果我使用官方的例子 我得到一个错误: PLS-00306:调用“FUNCOUT”时参数的数量或类型错误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
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']