Re: [NOVICE] column and table names

Поиск
Список
Период
Сортировка
От John DeSoi
Тема Re: [NOVICE] column and table names
Дата
Msg-id 34F26920-0C34-4059-837A-25CC4AB4EE14@pgedit.com
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: NFS vs. PostgreSQL on Solaris
Следующее
От: "Merlin Moncure"
Дата:
Сообщение: Re: Processing a work queue