java.sql.SQLException: Io exception: Got minus one from a read call during JDBC connection with oracle

后端 未结 7 1188
故里飘歌
故里飘歌 2020-12-19 07:52

Hi I am new to java when I tried to connect oracle with my java sample code I got the above exception

My Code is

import java.sql.*;
import java.io.IO         


        
7条回答
  •  情书的邮戳
    2020-12-19 08:37

    One error i see is that you need to do a rs.next(); This will get tot he first resultset.

    for example

    while (!rs.next()){
      //read rs.getString(1);
    }
    

提交回复
热议问题