存储过程的返回值为string在java中怎么调用并接收呢
1个回答
2014-03-10
展开全部
java.sql.CallableStatement
初始化,设置参数
void
registerOutParameter(String parameterName, int sqlType)
Registers the OUT parameter named
parameterName to the JDBC type
sqlType.
然后执行,最好
String
getString(int parameterIndex)
Retrieves the value of the designated JDBC CHAR,
VARCHAR, or LONGVARCHAR parameter as a
String in the Java programming language.
初始化,设置参数
void
registerOutParameter(String parameterName, int sqlType)
Registers the OUT parameter named
parameterName to the JDBC type
sqlType.
然后执行,最好
String
getString(int parameterIndex)
Retrieves the value of the designated JDBC CHAR,
VARCHAR, or LONGVARCHAR parameter as a
String in the Java programming language.
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询