X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id EAD939F9CD8 for ; Mon, 22 May 2006 20:02:47 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 47386-09 for ; Mon, 22 May 2006 20:02:39 -0300 (ADT) X-Greylist: delayed 00:28:27.41253 by SQLgrey- Received: from mail.weycogroup.com (mail.weycogroup.com [66.162.233.194]) by postgresql.org (Postfix) with ESMTP id 6D2FA9F9B14 for ; Mon, 22 May 2006 20:02:38 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by mail.weycogroup.com (Postfix) with ESMTP id E3D66B66B4 for ; Mon, 22 May 2006 17:19:46 -0500 (CDT) From: Glenn Holmer Organization: Weyco Group, Inc. To: pgsql-jdbc@postgresql.org Subject: DatabaseMetaData Date: Mon, 22 May 2006 17:34:06 -0500 User-Agent: KMail/1.8 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200605221734.06987.gholmer@weycogroup.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/103 X-Sequence-Number: 15231 Can someone give me the right incantation to get the names of the columns in a table using DatabaseMetaData? I'm trying dmd = conn.getMetaData(); rs = dmd.getColumns("pg_attribute", "public", "tsoldto", null); while (rs.next()) { (where "tsoldto" is the name of my table) and not getting anything in the result set. What is that last argument supposed to be if I want to retrieve all the column names, and are the first two correct? -- ____________________________________________________________ Glenn Holmer gholmer@weycogroup.com Software Engineer phone: 414-908-1809 Weyco Group, Inc. fax: 414-908-1601