Does PostgreSQL support Constant Expression (Alias Name)? - Mailing list pgsql-general

From Raymond Chui
Subject Does PostgreSQL support Constant Expression (Alias Name)?
Date
Msg-id 3A9FAE75.BA22CF06@noaa.gov
Whole thread Raw
Responses Re: Does PostgreSQL support Constant Expression (Alias Name)?  ("Oliver Elphick" <olly@lfix.co.uk>)
List pgsql-general
If  a table has columns fname, lname.
I want to do query like

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

This SELECT statement is fine in Oracle, Sybase and Informix.
But I get an error message in PostgreSQL

Because I want the output like

First Name | Last Name
--------------------------
fn               | ln

instead default like

fname | lname
---------------
fn       | ln

What is the correct way doing this in PostgreSQL?
Thank you very much in advance!



--Raymond


Attachment

pgsql-general by date:

Previous
From: Alasdair I MacLeod
Date:
Subject: Re: Triggered data change violation
Next
From: Raymond Chui
Date:
Subject: Re: store procedure in pl/pgsql