selecting all columns but one

Поиск
Список
Период
Сортировка
От blackwater dev
Тема selecting all columns but one
Дата
Msg-id 34a9824e0907280612v737aef45s22e940b1f39c881f@mail.gmail.com
обсуждение исходный текст
Ответы Re: selecting all columns but one
Re: selecting all columns but one
Re: selecting all columns but one
Список pgsql-general
I have a table with a lot of columns.  One of the columns I want to alias so have a query of:

select *, column as newname from mytable.

The problem is I now have column and newname in the results.  I don't want to select column by column.  How can I do a select * but omit one?

Thanks!

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

Предыдущее
От: Bjørn T Johansen
Дата:
Сообщение: Upgrading from 8.3 to 8.4 and Integer datatimes?
Следующее
От: Robert James
Дата:
Сообщение: Re: Relational Algebra and Aggregate Functions