`
YOUNG918
  • 浏览: 185450 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

registerOutParameter Method (SQLServerCallableStat

阅读更多
registerOutParameter Method (SQLServerCallableStatement)

Registers the OUT parameter.

Overload List

Name Description

registerOutParameter (int, int)

Registers the OUT parameter in the specified ordinal position to the given JDBC type.

registerOutParameter (int, int, int)

Registers the OUT parameter in the specified ordinal position to the given JDBC type and scale.

registerOutParameter (int, int, java.lang.String)

Registers the OUT parameter in the specified ordinal position to the given JDBC type and type name.

registerOutParameter (java.lang.String, int)

Registers the OUT parameter with the specified name to the given JDBC type.

registerOutParameter (java.lang.String, int, int)

Registers the OUT parameter with the specified name to the given JDBC type and scale.

registerOutParameter (java.lang.String, int, java.lang.String)

Registers the OUT parameter with the specified name to the given JDBC type and type name.

分享到:
评论

相关推荐

    CallableStatement的用法

    CallableStatement的用法

    java-hibernate调用mysql过程和函数的方式知识.pdf

    调用 MySQL 过程和函数是 Java-Hibernate 框架中的一种重要技术,通过使用 CallableStatement 对象和 registerOutParameter() 方法,我们可以轻松地调用 MySQL 中的过程和函数,从而实现复杂的业务逻辑。

    Oracle第3章及java调用过程函数.rar

    cst.registerOutParameter(2, oracle.jdbc.OracleTypes.VARCHAR); 5.获取输出参数的值 6.使用execute()调用过程 7.获取输出参数的值 Java调用过程的步骤与调用过程类似,第2步不一样: CallableStatement cst=conn....

    java调用存储过程小结.pdf

    对于有返回值的存储过程,我们可以使用 CallableStatement 对象来调用存储过程,并使用 registerOutParameter 方法来注册输出参数,然后使用 execute 方法来执行存储过程,并获取返回值。 Java 调用存储过程可以...

    JAVA调用存储过程

    callableStatement.registerOutParameter(3, Types.INTEGER); callableStatement.execute(); //取返回结果,重点是这句2 //int rsCount = callableStatement.getInt(3); //close ConnectionHelper.close...

    java实验报告:实验六.doc

    在使用时,必须先调用CallableStatement.registerOutParameter方 法为每一个输出参数进行类型注册,然后执行该过程调用语句,最后使用getXXX方法取 出输出参数的结果. 7.SQL数据类型到Java类型的转换:SQL数据类型与...

    Spring jdbcTemplate调用Oracle存储过程返回List集合

    cs.registerOutParameter(1, OracleTypes.CURSOR); cs.execute(); ResultSet rs = (ResultSet) cs.getObject(1); ResultSetMetaData metaData = rs.getMetaData(); while (rs.next()) { HashMap, Object> row ...

Global site tag (gtag.js) - Google Analytics