Guest User

Untitled

a guest
Mar 24th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. Class.forName("oracle.jdbc.driver.OracleDriver");
  2. Connection con=DriverManager.getConnection(
  3. "jdbc:oracle:thin:@localhost:1521:amani","system","a123");
  4. Statement stmt=con.createStatement();
  5. ResultSet rs=stmt.executeQuery("select * from emp");
  6. while(rs.next())
  7. System.out.println(rs.getInt(1)+" - "+ rs.getString(2)+" - "+rs.getInt(3)+"n");
  8.  
  9. java.sql.SQLException: Io exception: Bad packet type
Add Comment
Please, Sign In to add comment