Re: Can column name aliases be supported?

Поиск
Список
Период
Сортировка
От Bosco Rama
Тема Re: Can column name aliases be supported?
Дата
Msg-id 50356008.9020303@boscorama.com
обсуждение исходный текст
Ответ на Re: Can column name aliases be supported?  (Bosco Rama <postgres@boscorama.com>)
Ответы Re: Can column name aliases be supported?
Список pgsql-general
Ooops!  Hit send too fast...

On 08/22/12 15:34, Bosco Rama wrote:
> On 08/22/12 15:19, Gauthier, Dave wrote:
>>
>> I know a view can be used to alias one of them.
>
> It can alias all of them:
>
> create view xyz as
>    select *, last_name as lname, last_name as surname
>       from mytable;
>
> (not the nicest version but functional)

... and then use an INSTEAD/ALSO rule to do the update, if needed.

Bosco.


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

Предыдущее
От: Rob Sargent
Дата:
Сообщение: Re: Can column name aliases be supported?
Следующее
От: "David Johnston"
Дата:
Сообщение: Re: Database Bloat