我引用了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}$
当有OUT或IN-OUT参数时,必须传递一个变量,而不是该参数的文本。否则该过程如何将值传回?在
你可以看看PLSQLSample.java
相关问题 更多 >
编程相关推荐