Next: Statements
Up: Databases and JDBC
Previous: Getting things set up
Contents
Subsections
- Class.forName("jdbc.DriverXYZ");
- Class.forName("org.postgresql.Driver");
- Connection conn = DriverManager.getConnection(url,"loginID", "password");
- The URL:
- jdbc:postgresql:database
- jdbc:postgresql://host/database
- jdbc:postgresql://host:port/database
Next: Statements
Up: Databases and JDBC
Previous: Getting things set up
Contents