column number instead of column name

Поиск
Список
Период
Сортировка
От First Last
Тема column number instead of column name
Дата
Msg-id 20060120002437.E662DAB0@dm20.mta.everyone.net
обсуждение исходный текст
Ответы Re: column number instead of column name  (Michael Fuhr <mike@fuhr.org>)
Список pgsql-novice
how can i make use of the column number instead of the column name when making the select statement?

for instance:
"SELECT mytable.col[1], mytable.col[2], mytable.col[3], mytable.userid from mytable"

i have several tables and i need to extract the first three columns and a known column. the first three columns for the
differenttables vary, but all the tables have the userid column. 


_____________________________________________________________
Check out Atenista.Net (www.atenista.net)- new design, regular content and additional services!

В списке pgsql-novice по дате отправления:

Предыдущее
От: Lynna Landstreet
Дата:
Сообщение: Re: Problems with select statement
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: column number instead of column name