From: Daniel J. Summers <daniel.lists@djs-consulting.com>
To: pgsql-admin@postgresql.org
Subject: Re: getting list of columns from a query
Date: Sun, 22 Aug 2010 21:18:47 +0000
Message-ID: <4C719437.1060908@djs-consulting.com> (raw)
In-Reply-To: <AANLkTinV9TbfsaKa2cgVJdLBG500OaeyeoH=bKqOwA6f@mail.gmail.com>
References: <AANLkTinV9TbfsaKa2cgVJdLBG500OaeyeoH=bKqOwA6f@mail.gmail.com>
On 08/22/2010 05:27 PM, c k wrote:
> As I am using MS Access for a long time, many tools like ms access
> provides a way to get the list of columns from a query. (using filed
> list in combo boxes in ms access). But is it possible to get such list
> of columns from a query where it is not known to the user, that which
> columns are defined in the base 'SELECT' statement? How? I dynamically
> created SQL statements many times this situation occurs where the
> columns are not fixed and we have to get the list of columns from such
> a query.
What language are you using, and what technique in that language are you
using? (ex. Java and JDBC, C# and ADO.NET, PHP and PDO, or PHP and
PostgreSQL native) Most of these provide a way to get to the column
names, but they're language- and technique-dependent.
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: daniel.lists@djs-consulting.com
Subject: Re: getting list of columns from a query
In-Reply-To: <4C719437.1060908@djs-consulting.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