Re: select as

From: Greg Stark <gsstark(at)mit(dot)edu>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: select as
Date: 2004-12-23 22:22:24
Message-ID: 87wtv8d59b.fsf@stark.xeocode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


Bambero <bambero(at)tlen(dot)pl> writes:

> I don't know what fields are in the table so:
>
> select fieldname as 1, fieldname2 as 2
>
> is useless.

slo=> create table x (foo text,bar text,baz text);
CREATE TABLE
slo=> select * from (select * from x) as x ("1","2","3");
1 | 2 | 3
---+---+---
(0 rows)

--
greg

In response to

  • select as at 2004-12-23 18:37:14 from Bambero

Browse pgsql-general by date

  From Date Subject
Next Message Együd Csaba (Freemail) 2004-12-23 22:23:30 Re: Very slow stored proc
Previous Message Derik Barclay 2004-12-23 22:13:42 Making a varchar bigger