Re: How to Get Column Names from the Table

From: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: How to Get Column Names from the Table
Date: 2010-07-07 09:14:56
Message-ID: 20100707091456.GB2523@a-kretschmer.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-sql

In response to venkat :
> Dear All,
>
>    How to get Column Names from Table in PostgreSQL.

select column_name from information_schema.columns where table_name = 'your_table';

Regards, Andreas
--
Andreas Kretschmer
Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header)
GnuPG: 0x31720C99, 1006 CCB4 A326 1D42 6431 2EB0 389D 1DC2 3172 0C99

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message venkat 2010-07-07 09:17:27 Re: How to Get Column Names from the Table
Previous Message Viktor Bojović 2010-07-07 09:14:32 Re: [SQL] How to Get Column Names from the Table

Browse pgsql-sql by date

  From Date Subject
Next Message venkat 2010-07-07 09:17:27 Re: How to Get Column Names from the Table
Previous Message Viktor Bojović 2010-07-07 09:14:32 Re: [SQL] How to Get Column Names from the Table