Re: How to get required space between field names - Mailing list pgsql-general

From Darko Prenosil
Subject Re: How to get required space between field names
Date
Msg-id 200305201304.24919.darko.prenosil@finteh.hr
Whole thread Raw
In response to How to get required space between field names  ("shreedhar" <shreedhar@lucidindia.net>)
Responses Re: How to get required space between field names  ("Nigel J. Andrews" <nandrews@investsystems.co.uk>)
List pgsql-general
On Tuesday 20 May 2003 08:31, 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 about:
    SELECT contactid AS "Contact Id" FROM "tContacts";

Be very careful with mixing upper and lower cases in object names.
If Your table name is upper or mixed case You must quote it too, as shown
in example.

> 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

Regards !

pgsql-general by date:

Previous
From: Kaare Rasmussen
Date:
Subject: Re: How to get required space between field names
Next
From: Alexander Litvinov
Date:
Subject: Re: How to get required space between field names