首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > 其他数据库 >

java调用Oracle函数示范程序

2013-01-26 
java调用Oracle函数示例程序Connection con DbPool.getConnection()CallableStatement cstmt con.pre

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();

热点排行