pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Benoit Foucher <benoit@ooc.com>
To: Robson Martins <robson@netalfa.com.br>
Cc: pgsql-interfaces <pgsql-interfaces@postgreSQL.org>
Subject: Re: [INTERFACES] How to access postgresql database using jdbc driver?
Date: Wed, 07 Jul 1999 10:39:44 -0400
Message-ID: <378366AA.F240A470@ooc.com> (raw)
References: <004c01bec882$dfc536a0$1ed4d2c8@Designer2.netalfa.com.br>

Hi Robson,

What are the errors? I suggest you to read the JDBC section in 
the java tutorial (on java.sun.com web site), there's also
code sample on: 
http://developer.java.sun.com/developer/codesamples/database/

For postresql specific issue concerning the JDBC driver you can
have a look at the "Postgresql Programmer's Guide" 
(doc/programmer.ps) and the example programs which are in the 
pgsql/src/interfaces/jdbc/example directory...

Regards,
Benoit

> Robson Martins wrote:
> 
> Hello all.
> My name is Robson.
> I'm starting on java language yet, and I'm having problems to access
> postgre sql database with jdbc.
> I have PostgreSQL 6.5, JDK1.1.8, and a jdbc driver to JDK1.1.x
> I'm using the comands:
>  Class.forName("postgresql.Driver"); -> to select the type of database
>  Connection db =
> DriverManager.getConnection("jdbc:postgresql://200.210.212.4:5432/imf",
> "username", "password"); -> to  connect to the database
> But i dont know how I check if worked, and I get a lot of errors.
> Anybody can send me a example .java that show me how to load the
> driver, connect to the database, see if worked, create tables, and
> others, using postgres 6.5?
> I didnt find on the web.
> Please anybody help me with this!
> I'm waiting any answer...
> Robson ( robson@netalfa.com.br )
> 
> 
> 

-- 
Benoit Foucher                                      mailto:benoit@ooc.com
Object-Oriented Concepts, Inc.  (trainee) 
44 Manning Road
Billerica, MA 01821



view thread (3+ messages)  latest in thread

Message-ID: <378366AA.F240A470@ooc.com>
Permalink:  ../378366AA.F240A470@ooc.com/
Also on:    postgresql.org/message-id/378366AA.F240A470@ooc.com

 · 

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: benoit@ooc.com, robson@netalfa.com.br
  Subject: Re: [INTERFACES] How to access postgresql database using jdbc driver?
  In-Reply-To: <378366AA.F240A470@ooc.com>

* 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