Re: [SQL] how to use column name with Case-sensitive with out usig

From: Ragnar Hafstað <gnari(at)simnet(dot)is>
To: wisan watcharinporn <maccran(at)hotmail(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org, pgsql-admin(at)postgresql(dot)org
Subject: Re: [SQL] how to use column name with Case-sensitive with out usig
Date: 2005-08-06 09:51:11
Message-ID: 1123321871.8191.16.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-sql

On Sat, 2005-08-06 at 05:00 +0000, wisan watcharinporn wrote:
> how can i use
>
> create table myName(
> myColumnName varchar(32)
> );
>
> select myColumnName from myColumnName ;

Assuming you meant 'from myName' here,
this should work.

On the other hand, this will NOT work:

create table "myName"(
myColumnName varchar(32)
);
select myColumnName from myName ;

if you mean that you want some thing like:
create table foo (
myColumnName varchar(32),
MYcOLUMNnAME varchar(32)
);
without using quotes, then that is not
possible, per SQL specs.

gnari

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Joel Fradkin 2005-08-06 15:56:12 issue doing backup / restore using pgadmin III
Previous Message wisan watcharinporn 2005-08-06 05:00:51 how to use column name with Case-sensitive with out usig ""

Browse pgsql-sql by date

  From Date Subject
Next Message Nicolas Cornu 2005-08-06 20:58:40 Caracter é
Previous Message wisan watcharinporn 2005-08-06 05:00:51 how to use column name with Case-sensitive with out usig ""