Re: How to get required space between field names

From: "alex b(dot)" <mailinglists1(at)gmx(dot)de>
To: Postgresql General <pgsql-general(at)postgresql(dot)org>
Subject: Re: How to get required space between field names
Date: 2003-05-20 10:51:00
Message-ID: 3ECA0894.3010404@gmx.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

M$:
SELECT contactid AS [Contact Id] FROM tContacts;

PostGRE:
SELECT contactid AS "Contact Id" FROM tContacts;

shreedhar wrote:
> Hi All,
>
> How to get required space between field names.
>
> example.
> field name is : contactid
> But I would like to display it as 'Contact Id' in my report.
>
> If I write query like in SQLServer 2000 I am getting an error.
>
> * SELECT contactid AS [Contact Id] FROM tContacts;
>
> How can I get similar to above operation.
>
> Thanks & Regards,
> Sreedhar Bhaskararaju
>
> Our greatest happiness in life does not depend on the condition of life
> in which chance has placed us, but is always the result of good
> conscience, good health, occupation, and freedom in all just pursuits

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Martijn van Oosterhout 2003-05-20 10:55:11 Re: PRIMARY KEYS
Previous Message Karsten Hilbert 2003-05-20 10:47:04 Re: INSERT/UPDATE/DELETE Views