读书人

java调用Oracle函数示范程序

发布时间: 2013-01-26 13:47:04 作者: rapoo

java调用Oracle函数示例程序
Connection con = DbPool.getConnection();
CallableStatement cstmt = con.prepareCall("{?=call test}");
cstmt.registerOutParameter(1, Types.VARCHAR);
cstmt.execute();
String strValue = cstmt.getString(1);
System.out.println("The return value is:" + strValue);
cstmt.close();
con.close();

读书人网 >其他数据库

热点推荐