먼저 코드..


첫번째 형태...
stmt = conn.prepareStatement(strSql);
ResultSet rset = stmt.executeQuery();

if(rset != null){
   while(rset.next()){
      rset 의 값  <----  이 값이 궁금함..
   } // while(rset.next()){

} // if(rset != null){

----------------------------------------------------------

두번째 형태...
stmt = conn.prepareStatement(strSql);
ResultSet rset = stmt.executeQuery();

if(rset != null){
   rset.first();   <------------------요기가 추가됨...
   while(rset.next()){
      rset 의 값  <----  이 값이 궁금함..
   } // while(rset.next()){

} // if(rset != null){


================================================
위 코드에서 차이는 rset.first(); 가 있고 없고의 차이임..

저기서 첫행의 값이 같아?  달라???

보면 first() 를 호출하면 첫번째 행으로 이동한다고 되어 있어.. 
그렇다면 두번째 형태의 경우 최초로 나오는 값이 두번째 행의 값이 나오지 않을까??


test 해볼수도 없고 해서 ..

궁금해  알려주세요..