How to retrieve data using JDBC
问题 I have been trying with the following code. The connection is being made. But the resultSet is coming as empty (not null), whereas there are a couple of entries (2 fields each) in the database for the same. It does not enter the while condition. I'm new to JDBC, please help! My code is: import java.sql.*; public class JDBCTest123 { public static void main(String[] args) { System.out.println("oracle Connect Example."); Connection conn = null; String url = "jdbc:oracle:thin:@127.0.0.1:1521:XE";