Re: SELECT 1st field

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jan Bakuwel <jan(dot)bakuwel(at)greenpeace(dot)org>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: SELECT 1st field
Date: 2012-05-15 11:01:04
Message-ID: 21931.1337079664@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Jan Bakuwel <jan(dot)bakuwel(at)greenpeace(dot)org> writes:
> What I need is the ability to name the column in the view, ie.

> create view v as select 1 as "id" from func(5);

I think what you're looking for is the ability to re-alias a column name,
for example

select id from func(5) as foo(id);

regards, tom lane

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Misa Simic 2012-05-15 12:21:56 Re: SELECT 1st field
Previous Message Dmitriy Igrishin 2012-05-15 11:00:28 Re: Finding Max Value in a Row