Resource Menu


Comment of : Problem with "login"
You can try something like that with the postgres driver in you classpath.

Class.forName("org.postgresql.Driver");
Connection con = DriverManager.getConnection( "jdbc:postgresql://localhost:5432/libresource", "demo","");

Statement stmt = con.createStatement(); ResultSet rs = stmt.executeQuery("SELECT * FROM nodes_"); while (rs.next()) { System.out.println(rs.getString(0)); }

posted by Sebastien Jourdain at Feb 26, 2007 11:56 AM