Search Postgresql Archives

Re: [NOVICE] column and table names

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux