Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 609CE9FB1F5 for ; Tue, 21 Nov 2006 16:39:40 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 20415-01 for ; Tue, 21 Nov 2006 20:39:29 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170]) by postgresql.org (Postfix) with ESMTP id 0C3419FB1DD for ; Tue, 21 Nov 2006 16:39:28 -0400 (AST) Received: by ug-out-1314.google.com with SMTP id 74so1691573ugb for ; Tue, 21 Nov 2006 12:39:27 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=K3plZeJsJ/X2ovMAx3Ee5k5A0Zn0PalVC69wX7k9JWDSLyi/FrDBIMZbnxGCrh8zQFwUeRmM/YSoziery+/LWUqv9Wwm5tND+h/kIUP/3LgmIhtZV1UprgJBcx3Xn5bLCRjUxhH2JKLZs9BZDVv84iY43w3vUCiCyCUMuw03gVo= Received: by 10.82.142.9 with SMTP id p9mr1093382bud.1164139956249; Tue, 21 Nov 2006 12:12:36 -0800 (PST) Received: by 10.82.161.3 with HTTP; Tue, 21 Nov 2006 12:12:36 -0800 (PST) Message-ID: <1f30b80c0611211212qb27e368o652baef68968d886@mail.gmail.com> Date: Wed, 22 Nov 2006 01:12:36 +0500 From: imad To: "Michael Schmidt" Subject: Re: Hello World Cc: pgsql-jdbc@postgresql.org, Andreas In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <456295E2.3010209@gmx.net> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/112 X-Sequence-Number: 16154 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 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 >