jsp中引用存储过程错误
我在jsp中引用存储过程,报下面的错
No row count was produced
我的数据表中有数据,为什么会这样?
问题点数:50、回复次数:5Top
1 楼hj246(天一良品)回复于 2005-07-01 20:00:24 得分 0
那位大侠帮我看看吧Top
2 楼xyj0323(好好学习,天天向上)回复于 2005-07-01 20:14:43 得分 20
你应该把你的情况说清楚一点,象你这么写,谁也解决不了你的问题!Top
3 楼panzi667(迅雷免费电影下载社区http://www.woyaola.net)回复于 2005-07-02 01:45:13 得分 20
代码看看Top
4 楼yangbc(土豆块)回复于 2005-07-02 02:53:28 得分 10
你看看你的存储过程是什么语句,是不是不是返回row count的操作Top
5 楼hj246(天一良品)回复于 2005-07-02 15:34:27 得分 0
这是我写的代码
public void ExcelWrite(ExcelWriteVo vo){
String ssql="{call dbo.p_exporttb(?,?,?,?)}";
Connection conn=this.getConnection();
CallableStatement stmt =null;
String sql=vo.getSsql().toString();
String spath=vo.getSpath().toString();
String sfilename=vo.getFilename().toString();
String sheetname=vo.getSheetname().toString();
try{
stmt = conn.prepareCall(ssql);
stmt.setString(1,sql);
stmt.setString(2,spath);
stmt.setString(3,sfilename);
stmt.setString(4,sheetname);
stmt.executeUpdate();
}
catch(Exception ex){
ex.printStackTrace();
}
finally{
try{
stmt.close();
conn.close();
}
catch(Exception ex){
ex.printStackTrace();
}
}Top




