From: Ragnar Hafstaư <gnari@simnet.is>
To: wisan watcharinporn <maccran@hotmail.com>
Cc: pgsql-sql@postgresql.org
Cc: pgsql-admin@postgresql.org
Subject: Re: [SQL] how to use column name with Case-sensitive with out usig
Date: Sat, 06 Aug 2005 09:51:11 +0000
Message-ID: <1123321871.8191.16.camel@localhost.localdomain> (raw)
In-Reply-To: <BAY18-F1774B8FA12CA9D0B6AC64FBEC60@phx.gbl>
References: <BAY18-F1774B8FA12CA9D0B6AC64FBEC60@phx.gbl>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: gnari@simnet.is, maccran@hotmail.com, pgsql-admin@postgresql.org
Subject: Re: [SQL] how to use column name with Case-sensitive with out usig
In-Reply-To: <1123321871.8191.16.camel@localhost.localdomain>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox