From: imad <immaad@gmail.com>
To: Michael Schmidt <michaelmschmidt@msn.com>
Cc: pgsql-jdbc@postgresql.org
Cc: Andreas <maps.on@gmx.net>
Subject: Re: Hello World
Date: Wed, 22 Nov 2006 01:12:36 +0500
Message-ID: <1f30b80c0611211212qb27e368o652baef68968d886@mail.gmail.com> (raw)
In-Reply-To: <BAY114-DAV1504778984B97DCD1D47B8A3EC0@phx.gbl>
References: <456295E2.3010209@gmx.net>
<BAY114-DAV1504778984B97DCD1D47B8A3EC0@phx.gbl>
Could not find anything more "Hello World" than this :-)
http://www.fankhausers.com/postgresql/jdbc/
--Imad
www.EnterpriseDB.com
On 11/21/06, Michael Schmidt <michaelmschmidt@msn.com> wrote:
>
>
>
> Andreas,
> I was in a similar situation about two years ago and have, slowly, learned a
> bit about Java. Java itself is deceptively simple but to use it
> effectively, you will want to use one of the IDE platforms. I chose Eclipse
> over the others because it allows native access to SWT and JFace, and
> because it is open-source and free (like PostgreSQL). Eclipse has a pretty
> steep learning curve, but being a stubborn German, I stuck with it and now
> am able to do most things fairly easily. For the beginner, I would
> recommend investing in the Designer or RCP builder plug-in from
> Instantiations.
>
> Working on my application, I realized that I could start by writing a basic,
> generic UI and then add custom features specific to my application later. I
> made the generic UI available at PgFoundry (the Komo project). It includes
> database access (password and other settings), as well as general utilities
> (back up, restore, vacuum). The code isn't perfect, but it works.
> Hopefully, this will serve as the "Hello World" application you are looking
> for. Here's the link
> http://pgfoundry.org/projects/komo-client/
>
> Michael Schmidt
>
>
> ----- Original Message -----
> From: Andreas
> To: pgsql-jdbc@postgresql.org
> Sent: Monday, November 20, 2006 11:00 PM
> Subject: [JDBC] Hello World
>
> 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.
>
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 3: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faq
>
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: immaad@gmail.com, michaelmschmidt@msn.com, maps.on@gmx.net
Subject: Re: Hello World
In-Reply-To: <1f30b80c0611211212qb27e368o652baef68968d886@mail.gmail.com>
References: <456295E2.3010209@gmx.net> <BAY114-DAV1504778984B97DCD1D47B8A3EC0@phx.gbl> <1f30b80c0611211212qb27e368o652baef68968d886@mail.gmail.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