Обсуждение: how to use column name with Case-sensitive with out usig ""

Поиск
Список
Период
Сортировка

how to use column name with Case-sensitive with out usig ""

От
"wisan watcharinporn"
Дата:
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/


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

От
Ragnar Hafstað
Дата:
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