Re: how to use column name with Case-sensitive with out usig - Mailing list pgsql-sql

From Ragnar Hafstað
Subject Re: how to use column name with Case-sensitive with out usig
Date
Msg-id 1123321871.8191.16.camel@localhost.localdomain
Whole thread Raw
In response to how to use column name with Case-sensitive with out usig ""  ("wisan watcharinporn" <maccran@hotmail.com>)
List 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



pgsql-sql by date:

Previous
From: "wisan watcharinporn"
Date:
Subject: how to use column name with Case-sensitive with out usig ""
Next
From: Nicolas Cornu
Date:
Subject: Caracter é