2.不用,是你的连接设置不允许游标随便移动。看看下面函数的帮助(两个参数):
stat = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);

解决方案 »

  1.   

    break 不可以用于跳出函数,只可用于跳出 循环语句 和 swith语句.
      

  2.   

    因为上班不能上网,我浏览器开的很小,刚开始没看到最下面一句,以为你要跳出ResultSet循环。
      

  3.   

    或者用
    goto 跳到最后一行虽然这种方法不推荐使用,但必要时还是可以用的
      

  4.   

    goto is a reserve keyword in java. Can it really be effectively used?
    return;exception handling;change the value of condition in judgement;