pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedhow to use column name with Case-sensitive with out usig ""
2+ messages / 2 participants
[nested] [flat]
* how to use column name with Case-sensitive with out usig ""
@ 2005-08-06 05:00 wisan watcharinporn <maccran@hotmail.com>
2005-08-06 09:51 ` Re: [SQL] how to use column name with Case-sensitive with out usig Ragnar Hafstað <gnari@simnet.is>
0 siblings, 1 reply; 2+ messages in thread
From: wisan watcharinporn @ 2005-08-06 05:00 UTC (permalink / raw)
To: pgsql-sql; pgsql-admin@postgresql.org
how can i use
create table myName(
myColumnName varchar(32)
);
select myColumnName from myColumnName ;
instead
create table "myName" (
"myColumnName" varchar(32)
);
select "myColumnName" from "myColumnName" ;
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: [SQL] how to use column name with Case-sensitive with out usig
2005-08-06 05:00 how to use column name with Case-sensitive with out usig "" wisan watcharinporn <maccran@hotmail.com>
@ 2005-08-06 09:51 ` Ragnar Hafstað <gnari@simnet.is>
0 siblings, 0 replies; 2+ messages in thread
From: Ragnar Hafstað @ 2005-08-06 09:51 UTC (permalink / raw)
To: wisan watcharinporn <maccran@hotmail.com>; +Cc: pgsql-sql; pgsql-admin@postgresql.org
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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2005-08-06 09:51 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-08-06 05:00 how to use column name with Case-sensitive with out usig "" wisan watcharinporn <maccran@hotmail.com>
2005-08-06 09:51 ` Re: [SQL] how to use column name with Case-sensitive with out usig Ragnar Hafstað <gnari@simnet.is>
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