Re: Does PostgreSQL support Constant Expression (Alias Name)?

From: "Oliver Elphick" <olly(at)lfix(dot)co(dot)uk>
To: Raymond Chui <raymond(dot)chui(at)noaa(dot)gov>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Does PostgreSQL support Constant Expression (Alias Name)?
Date: 2001-03-02 17:31:57
Message-ID: 200103021731.f22HVvG20031@linda.lfix.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Raymond Chui wrote:
>This is a multi-part message in MIME format.
>--------------CDE89E33286CEE4876F664CE
>Content-Type: text/plain; charset=us-ascii
>Content-Transfer-Encoding: 7bit
>
>If a table has columns fname, lname.
>I want to do query like
>
>SELECT fname "First Name", lname "Last Name" FROM aTable;

SELECT fname AS "First Name", lname AS "Last Name" FROM aTable;

--
Oliver Elphick Oliver(dot)Elphick(at)lfix(dot)co(dot)uk
Isle of Wight http://www.lfix.co.uk/oliver
PGP: 1024R/32B8FAA1: 97 EA 1D 47 72 3F 28 47 6B 7E 39 CC 56 E4 C1 47
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
========================================
"I will lift up mine eyes unto the hills, from whence
cometh my help. My help cometh from the LORD, which
made heaven and earth."
Psalms 121:1,2

Browse pgsql-general by date

  From Date Subject
Next Message Trewern, Ben 2001-03-02 17:35:17 RE: Convert to upper
Previous Message Trewern, Ben 2001-03-02 17:21:10 RE: Does PostgreSQL support Constant Expression (Alias Name)?