From: | "Carl E(dot) McMillin" <carlymac(at)earthlink(dot)net> |
---|---|
To: | "'Glenn Sullivan'" <glenn(dot)sullivan(at)varianinc(dot)com>, "'pgsql-general'" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Column names and datatypes |
Date: | 2004-05-14 19:43:43 |
Message-ID: | 000e01c439eb$c700c230$6600a8c0@DEVSONY |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Use getMetadata of Connection. According to jdocs, the DatabaseMetaData
object can probably give you what you are looking for.
Carl <|};-)>
-----Original Message-----
From: pgsql-general-owner(at)postgresql(dot)org
[mailto:pgsql-general-owner(at)postgresql(dot)org] On Behalf Of Glenn Sullivan
Sent: Friday, May 14, 2004 12:23 PM
To: pgsql-general
Subject: [GENERAL] Column names and datatypes
I need to acquire the list of all column names and datatypes from a table
through the JDBC interface using an sql command. What I want is available in
"psql" with the "\d tablename" command, but I cannot figure out how to get
these via an sql command. Can anyone help?
Thanks,
Glenn
---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?
From | Date | Subject | |
---|---|---|---|
Next Message | Mike Mascari | 2004-05-14 19:47:31 | Re: Column names and datatypes |
Previous Message | Glenn Sullivan | 2004-05-14 19:23:04 | Column names and datatypes |