1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-11 10:01:57 +03:00

Another attempt

This commit is contained in:
Peter Mount
2000-04-26 05:32:01 +00:00
parent 1b266fbcca
commit 39116bfbfc
9 changed files with 112 additions and 34 deletions

View File

@ -5,12 +5,17 @@ import java.sql.*;
import java.text.*;
/**
*
* $Id: basic.java,v 1.4 2000/04/26 05:32:00 peter Exp $
*
* This example tests the basic components of the JDBC driver, and shows
* how even the simplest of queries can be implemented.
*
* To use this example, you need a database to be in existence. This example
* will create a table called basic.
*
* Note: This will only work with post 7.0 drivers.
*
*/
public class basic
@ -25,7 +30,7 @@ public class basic
String pwd = args[2];
// Load the driver
Class.forName("postgresql.Driver");
Class.forName("org.postgresql.Driver");
// Connect to database
System.out.println("Connecting to Database URL = " + url);