pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Agus Mingtarja <mingtarja@hdz-ima.rwth-aachen.de>
To: pgsql-interfaces@postgreSQL.org
Subject: JDBC driver and postgreSQL
Date: Wed, 06 May 1998 20:33:55 +0200
Message-ID: <3550AD13.9A20C305@hdz-ima.rwth-aachen.de> (raw)

Hi All,
i have postgresql 6.3.2 (Linux 2.0 debian) istalled, and i can make
database now. My question ist:
How can i install the JDBC driver? (i use JDK 1.1.5)
Ist my programm below correct?

...
try
      {  Class.forName("postgresql.driver");
         // force loading of driver
         String url = "jdbc:postgresql://localhost/database";
         String user = "nobody";
         String password = "password";
         Connection con = DriverManager.getConnection(url, user,
password);
         Statement stmt = con.createStatement();
...

that's all. Please give me a tip. Thank You for the tip!


--


 Agus MINGTARJA  ..........................
  RWTH-Aachen GERMANY  .....................
   mingtarja@hdz-ima.RWTH-Aachen.de  ........
    http://www.geocities.com/Athens/8668/  ...





view thread (2+ messages)  latest in thread

Message-ID: <3550AD13.9A20C305@hdz-ima.rwth-aachen.de>
Permalink:  ../3550AD13.9A20C305@hdz-ima.rwth-aachen.de/
Also on:    postgresql.org/message-id/3550AD13.9A20C305@hdz-ima.rwth-aachen.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: mingtarja@hdz-ima.rwth-aachen.de
  Subject: Re: JDBC driver and postgreSQL
  In-Reply-To: <3550AD13.9A20C305@hdz-ima.rwth-aachen.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox