我不确定为什么会发生此错误,因为该列中有数据,并且我可以使用 Toad 执行此语句
try
{
System.out.println("Executing SQL");
String r = "select ID from PA_STR_RTL";
System.out.println("Starting Executing SQL");
st = con.createStatement();
ResultSet rs = st.executeQuery(r);
while(rs.next())
{
int r1 = rs.getInt("ID");
System.out.println(r1);
}
}
catch(SQLException e)
{
e.printStackTrace();
}