select * from (select * from a_wzqysldj) as temp where test='100'

解决方案 »

  1.   

    String test="";
    String str="";
    while(rs.next())
    {
    test=rs.getString("test");
    if(boolean result=test.equeals("100"));
    str=test;
    }
      

  2.   

    a little funny!
    studing!
      

  3.   

    楼主要找的是否是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;
      

  4.   

    String str="100";
    int countRow=0;
    while(rs.next())
    {
    test=rs.getString("test");
    if(test.equeals(str)){
    countRow++;
    }
    return countRow;这样可能好些!不知道偶有没理解对楼主的意思!