Re: Can column name aliases be supported? - Mailing list pgsql-general

From Bosco Rama
Subject Re: Can column name aliases be supported?
Date
Msg-id 50356008.9020303@boscorama.com
Whole thread Raw
In response to Re: Can column name aliases be supported?  (Bosco Rama <postgres@boscorama.com>)
Responses Re: Can column name aliases be supported?  (Craig Ringer <ringerc@ringerc.id.au>)
List 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 by date:

Previous
From: Rob Sargent
Date:
Subject: Re: Can column name aliases be supported?
Next
From: "David Johnston"
Date:
Subject: Re: Database Bloat