Received: from paris.netalfa.com.br ([200.210.212.12]) by hub.org (8.9.3/8.9.3) with ESMTP id KAA32040 for ; Wed, 7 Jul 1999 10:15:31 -0400 (EDT) (envelope-from robson@netalfa.com.br) Received: from Designer2 ([200.210.212.30]) by paris.netalfa.com.br (8.9.2/8.9.2) with SMTP id LAA16914 for ; Wed, 7 Jul 1999 11:17:18 -0300 (EST) Message-ID: <004c01bec882$dfc536a0$1ed4d2c8@Designer2.netalfa.com.br> Reply-To: "Robson Martins" From: "Robson Martins" To: "pgsql-interfaces" Subject: How to access postgresql database using jdbc driver? Date: Wed, 7 Jul 1999 11:13:23 -0300 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0049_01BEC869.BA3C7C40" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 This is a multi-part message in MIME format. ------=_NextPart_000_0049_01BEC869.BA3C7C40 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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 =3D = 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 ) ------=_NextPart_000_0049_01BEC869.BA3C7C40 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello all.
My name is Robson.
I'm starting on java language yet, and=20 I'm having problems to access postgre sql = database=20 with jdbc.
I have PostgreSQL 6.5, JDK1.1.8, and a jdbc driver = to=20 JDK1.1.x
I'm using the comands:
 Class.forName("postgresql.Driver"); -> = to select=20 the type of database
 Connection db =3D=20 DriverManager.getConnection("jdbc:postgresql://200.210.212.4:5432/imf",=20 "username", "password"); -> to  connect to the = database
But i dont know how I check if worked, and I get a = lot of=20 errors.
Anybody can send me a example .java that show me how = to load=20 the driver, connect to the database, see if worked, create tables, and = others,=20 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 )

 
 
------=_NextPart_000_0049_01BEC869.BA3C7C40--