pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Glenn Holmer <gholmer@weycogroup.com>
To: pgsql-jdbc@postgresql.org
Subject: DatabaseMetaData
Date: Mon, 22 May 2006 17:34:06 -0500
Message-ID: <200605221734.06987.gholmer@weycogroup.com> (raw)

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



view thread (11+ messages)  latest in thread

Message-ID: <200605221734.06987.gholmer@weycogroup.com>
Permalink:  ../200605221734.06987.gholmer@weycogroup.com/
Also on:    postgresql.org/message-id/200605221734.06987.gholmer@weycogroup.com

 · 

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: gholmer@weycogroup.com
  Subject: Re: DatabaseMetaData
  In-Reply-To: <200605221734.06987.gholmer@weycogroup.com>
  References: <200605221734.06987.gholmer@weycogroup.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