I found the best sites to be the db companies that provide the jdbc driver. Ie., Oracle.com. Goto documentation and look for the jdbc link. It gives
java code to access database. Here's what i did to
test it:
DriverManager.registerDriver (new oracle.jdbc.OracleDriver());
Connection con = DriverManager.getConnection
("jdbc
racle:thin:@'link'", "username", "password");
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("select * from MY_TBL");
out.println(rs.toString());