为什么出现:无法从套接字读取更多的数据
部分代码如下:
Connection cn=DB.getConnection() ;
Statement st=cn.createStatement();
ResultSet rs = null;
int intFirstRow = 21;
int intLastRow = intFirstRow + 20;
String strSQL = "select * from DIC where rownum<" +
intLastRow+ " minus select * from DIC where rownum<" + intFirstRow;
rs = st.executeQuery(strSQL);
代码执行到rs=st.executeQuery(strSQL)时出错:
java.sql.SQLException: 无法从套接字读取更多的数据
如果把intFirstRow设为1就不出错,真是太奇怪了