使用zxJDBC调用过程时参数的数目或类型错误

2024-10-02 08:24:19 发布

您现在位置:Python中文网/ 问答频道 /正文

我引用了http://www.jython.org/archive/21/docs/zxjdbc.html的官方示例:

Oracle
>>> 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

当我运行此代码时,会出现异常:

PLS-00306: wrong number or types of arguments in call to 'FUNCOUT' ORA-06550: line 1, column 7: PL/SQL: Statement ignored

如何修复?在

添加!!!此代码也不起作用:

^{pr2}$

Tags: orthe代码inorghttpdocsreturn

热门问题