pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andreas <maps.on@gmx.net>
To: pgsql-jdbc@postgresql.org
Subject: Hello World
Date: Tue, 21 Nov 2006 07:00:02 +0100
Message-ID: <456295E2.3010209@gmx.net> (raw)

Hi,

first of all I'll have to confess I don't know next to nothing at all 
about JAVA, yet.
On the other hand I'm not exactly new to programming nor PostgreSQL either.

Is there a "Hello World" level sample for jdbc with PG?

Lets suppose I allready have a running PG with a db db_test that has a 
few tables among which there is tbl_test in schema s.
The db-server might be 192.168.0.100.
User could be "user1" with password "pw1".

What would be minimally needed to connect to db_test and read the 
content of tbl_test to the console and logg off from PG.

I'd prefer a complete sample code that could be dumped through javac.




view thread (6+ messages)  latest in thread

Message-ID: <456295E2.3010209@gmx.net>
Permalink:  ../456295E2.3010209@gmx.net/
Also on:    postgresql.org/message-id/456295E2.3010209@gmx.net

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: maps.on@gmx.net
  Subject: Re: Hello World
  In-Reply-To: <456295E2.3010209@gmx.net>
  References: <456295E2.3010209@gmx.net>

* 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