Re: column names query

From: stimits(at)comcast(dot)net
To: pgsql-general(at)postgresql(dot)org
Subject: Re: column names query
Date: 2017-09-07 12:58:35
Message-ID: 995457802.67503071.1504789115022.JavaMail.zimbra@comcast.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

SELECT table_name, column_name
FROM information_schema.columns
WHERE table_name = 'your_name';

----- Original Message -----From: hamann w <hamann(dot)w(at)t-online(dot)de>To: pgsql-general(at)postgresql(dot)orgSent: Thu, 07 Sep 2017 07:18:12 -0000 (UTC)Subject: [GENERAL] column names query

Hi,

is there a simple way to retrieve column names from a query - basically the way psql addscolumn headings when I do a select?

Best regardsWolfgang Hamann

-- Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)To make changes to your subscription:http://www.postgresql.org/mailpref/pgsql-general

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message milist ujang 2017-09-07 13:16:03 Re: BDR, wal segment has been removed, is it possible move forward?
Previous Message Alexander Stoddard 2017-09-07 12:38:38 Plans to lift no write limitation on parallelism?