Re: Single quotes vs. double quotes when setting a pwd and other cmds

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Single quotes vs. double quotes when setting a pwd and other cmds
Date: 2010-06-28 21:36:54
Message-ID: 201006282136.o5SLasQ19441@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

A. Kretschmer wrote:
> In response to Alexander Farber :
> > And identifiers means column names (eventually containing whitespace)?
>
> Right.
>
> test=# select 'foo' as "my new column";
> my new column
> ---------------
> foo
> (1 row)

And double-quotes preserve case:

test=> select 'foo' as Mine;
mine
------
foo
(1 row)

test=> select 'foo' as "Mine"; <-- double-quotes
Mine <--
------
foo
(1 row)

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ None of us is going to be here forever. +

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2010-06-28 21:45:50 Re: weird initdb output
Previous Message raghu ram 2010-06-28 21:32:03 Prepared statement issue in Pgpool-II