ResultSet问题
try
{
Connection con = Drivermanager.getConnection("jdbc:odbc:project","","");
Statement sql = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABEL);
ResultSet rs = sql.executeQuery("select distinct ForeName from project1");
while(rs.next())
{
System.out.println(rs.getString("ForeName"));
}
}
catch(SQLException e)
{ System.out.println(e);}
打印的结果正确,但是之后为什么会出现"无效的光标状态"的SQLException