■■■jsp调用oracle存储过程问题??■■■ proc.registerOutParameter(1, Types.OTHER);确定不了输出参数类型?有些JDBC是不支持OTHER类型的,最好使用对应的类型 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 下面是调用存储过程的一段代码,不知道对你有没有用: Connection conn = null; ResultSet rs = null; int result = 0; conn = acx.getConnection(); try { CallableStatement proc = conn.prepareCall( "{call PRC_2502_AUCTION_ARTICLE_ADD(?, ?, ?, ?, ?, ?, ?, ?, ?) }"); proc.setString(1, article.getArticle_id()); proc.setString(2, article.getArticle_name()); proc.setString(3, article.getArticle_model()); proc.setString(4, article.getArticle_price()); proc.setString(5, article.getMax_bid_price()); proc.setString(6, article.getMin_bid_price()); proc.setString(7, article.getBegin_time()); proc.setString(8, article.getEnd_time()); proc.registerOutParameter(9, Types.INTEGER); proc.execute(); int ret = proc.getInt(9); System.out.print("The return of addArticle() is " + ret); return ret; //0-³É¹¦, 1-ʧ°Ü 怎样区别本地磁盘中的系统文件和普通文件 jsp charFilter 的应用! 请教大家了!! Web.xml配置异常监听无效 存储过程返回两张表 我要读第二张表怎么办? 用JSTL怎么样输出一个ArrayList的内容 怎样传id 真诚请教使用jb作为jsp开发得ide时碰到的编译和调试web的问题,困扰很久了,希望大家教我! struts2标签iterator问题 请问连接池是如何保证 池里的连接都是有效的?(例如数据库服务器重启后所有连接不是都用不来了吗?) 递归问题 谁有jfreechart的demo源码阿? 问个简单的问题,在提交表单后如何知道表单中的checkbox已经选中
Connection conn = null;
ResultSet rs = null;
int result = 0; conn = acx.getConnection(); try {
CallableStatement proc = conn.prepareCall(
"{call PRC_2502_AUCTION_ARTICLE_ADD(?, ?, ?, ?, ?, ?, ?, ?, ?) }");
proc.setString(1, article.getArticle_id());
proc.setString(2, article.getArticle_name());
proc.setString(3, article.getArticle_model());
proc.setString(4, article.getArticle_price());
proc.setString(5, article.getMax_bid_price());
proc.setString(6, article.getMin_bid_price());
proc.setString(7, article.getBegin_time());
proc.setString(8, article.getEnd_time());
proc.registerOutParameter(9, Types.INTEGER); proc.execute();
int ret = proc.getInt(9);
System.out.print("The return of addArticle() is " + ret);
return ret; //0-³É¹¦, 1-ʧ°Ü