Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id B129C9FA333 for ; Tue, 21 Nov 2006 01:57:01 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 19523-01 for ; Tue, 21 Nov 2006 01:56:56 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from mail.gmx.net (mail.gmx.de [213.165.64.20]) by postgresql.org (Postfix) with SMTP id A91FC9FA324 for ; Tue, 21 Nov 2006 01:56:55 -0400 (AST) Received: (qmail invoked by alias); 21 Nov 2006 05:56:53 -0000 Received: from i3ED6D19C.versanet.de (EHLO [192.168.0.112]) [62.214.209.156] by mail.gmx.net (mp040) with SMTP; 21 Nov 2006 06:56:53 +0100 X-Authenticated: #14269776 Message-ID: <456295E2.3010209@gmx.net> Date: Tue, 21 Nov 2006 07:00:02 +0100 From: Andreas User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.8.0.8) Gecko/20061030 SeaMonkey/1.0.6 MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Hello World Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.165 tagged_above=0 required=5 tests=BAYES_05, FORGED_RCVD_HELO, SPF_PASS, SUB_HELLO X-Spam-Level: * X-Archive-Number: 200611/104 X-Sequence-Number: 16146 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.