Re: [NOVICE] column and table names - Mailing list pgsql-general

From John DeSoi
Subject Re: [NOVICE] column and table names
Date
Msg-id 34F26920-0C34-4059-837A-25CC4AB4EE14@pgedit.com
Whole thread Raw
List pgsql-general
Try this:

select column_name from information_schema.columns where table_name =
'tablename' order by ordinal_position;


On Apr 26, 2007, at 6:11 PM, stephen wrote:

> Thanks, that worked ;-( but is there any way of ordering the column
> names by their natural order in the table - same as the order in the
> view?



John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL


pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: NFS vs. PostgreSQL on Solaris
Next
From: "Merlin Moncure"
Date:
Subject: Re: Processing a work queue