日期:2014-05-17  浏览次数:20408 次

获取存储过程返回值
假设过程为 test1(参数1 ,参数2 )
其中一个为输出参数(自己不知道哪个是)
我在java中直接 使用callablestatement = connection.prepareCall("{call test(100,200)}
下面没有使用 callablestatement.registerOutParameter 进行注册参数
也不使用callablestatement.getString(index)获取输出参数,因为我不知道第几个是输出参数
在callablestatement.execute()之后,有什么办法能获取该存储过程的输出参数

------解决方案--------------------
试试用object对象获取?