Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 9C0752E4163 for ; Wed, 6 Feb 2008 16:44:07 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 19513-02 for ; Wed, 6 Feb 2008 16:44:03 -0400 (AST) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by postgresql.org (Postfix) with ESMTP id B2EE52E414C for ; Wed, 6 Feb 2008 16:44:03 -0400 (AST) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JMr7g-0002ii-0v for pgsql-sql@postgresql.org; Wed, 06 Feb 2008 20:44:00 +0000 Received: from ppp-82-135-8-157.dynamic.mnet-online.de ([82.135.8.157]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 Feb 2008 20:44:00 +0000 Received: from spam_eater by ppp-82-135-8-157.dynamic.mnet-online.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 Feb 2008 20:44:00 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-sql@postgresql.org From: Thomas Kellerer Subject: Re: Columns view? (Finding column names for a table) Date: Wed, 06 Feb 2008 21:43:44 +0100 Lines: 18 Message-ID: References: <20080206203334.8B2B52E01F8@postgresql.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ppp-82-135-8-157.dynamic.mnet-online.de User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.666 In-Reply-To: <20080206203334.8B2B52E01F8@postgresql.org> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200802/35 X-Sequence-Number: 30126 Steve Midgley wrote on 06.02.2008 21:33: > Hi, > > I see this documentation item but can't figure out how to use it: > > http://www.postgresql.org/docs/8.2/interactive/infoschema-columns.html > >> The view columns contains information about all table columns (or view >> columns) in the database. select column_name from information_schema.columns where table_name = 'table_name' works for me. Thomas