Skip site navigation (1) Skip section navigation (2)

JDBC driver and postgreSQL

From: Agus Mingtarja <mingtarja(at)hdz-ima(dot)rwth-aachen(dot)de>
To: pgsql-interfaces(at)postgreSQL(dot)org
Subject: JDBC driver and postgreSQL
Date: 1998-05-06 18:33:55
Message-ID: 3550AD13.9A20C305@hdz-ima.rwth-aachen.de (view raw or flat)
Thread:
Lists: pgsql-interfaces
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(at)hdz-ima(dot)RWTH-Aachen(dot)de  ........
    http://www.geocities.com/Athens/8668/  ...



Responses

pgsql-interfaces by date

Next:From: Constantin TeodorescuDate: 1998-05-06 18:37:08
Subject: Re: [INTERFACES] RE: [QUESTIONS] pgaccess
Previous:From: mheraviDate: 1998-05-06 18:17:00
Subject: Re: [INTERFACES] RE: [QUESTIONS] pgaccess

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group