懒码农。。。。。。

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
CallableStatement stmt=null;
String id=null;
try{
stmt=connect.prepareCall("{call testpro(?,?,?)}");
    stmt.setString(1,"123");
    stmt.setString(2,"321");
    stmt.registerOutParameter(3,Types.VARCHAR);
    stmt.execute();
    id=stmt.getString(3);
}catch(Exception ex){
...
}finally{
...
}
posted on 2011-10-28 10:47  阿彬  阅读(202)  评论(0)    收藏  举报