请教数据库查询问题 select * from (select * from a_wzqysldj) as temp where test='100' 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 String test="";String str="";while(rs.next()){test=rs.getString("test");if(boolean result=test.equeals("100"));str=test;} a little funny!studing! 楼主要找的是否是test='100'记录的行数,如果是的话就是select count from (select * from a_wzqysldj) as temp where test='100'String test="";String str="";int countRow=0;while(rs.next()){test=rs.getString("test");if(boolean result=test.equeals("100"));str=test;countRow++;}return countRow; String str="100";int countRow=0;while(rs.next()){test=rs.getString("test");if(test.equeals(str)){countRow++;}return countRow;这样可能好些!不知道偶有没理解对楼主的意思! 求救!用ireport能实现表格合并 冻结表头 动态合并表格 吗? 为啥我一进空间就得重新登陆啊 请教struts2学习方法 如何在jsp的web页面上,实现多线程的上传文件? IE下载时,"打开"和"保存"有什么区别? 怎样 在JSP网页中 嵌入 .exe 文件那? 这段代码怎么没结果?脚本错误? sqlserver中datetime定义的字段,读出来有误! Java找不到class的问题.那位大哥帮忙啊! 下拉列表框 弹出选择出入框。。。。。 (救急!)JDBC连接Informix数据库
String str="";
while(rs.next())
{
test=rs.getString("test");
if(boolean result=test.equeals("100"));
str=test;
}
studing!
select count from (select * from a_wzqysldj) as temp where test='100'
String test="";
String str="";
int countRow=0;
while(rs.next())
{
test=rs.getString("test");
if(boolean result=test.equeals("100"));
str=test;
countRow++;
}
return countRow;
int countRow=0;
while(rs.next())
{
test=rs.getString("test");
if(test.equeals(str)){
countRow++;
}
return countRow;这样可能好些!不知道偶有没理解对楼主的意思!