Re: SQL: Are the "" around table & coloumnames necessary?

Поиск
Список
Период
Сортировка
От Doug McNaught
Тема Re: SQL: Are the "" around table & coloumnames necessary?
Дата
Msg-id m3lmdm7c65.fsf@varsoon.denali.to
обсуждение исходный текст
Ответ на SQL: Are the "" around table & coloumnames necessary?  (mikey.unsafe@gmx.net (Mikey))
Список pgsql-general
mikey.unsafe@gmx.net (Mikey) writes:

> Hello,
>
> when I  write a select for example,
> it doesn't work this way:
>
>    select col1, col2
>       from my_table;
>
> instead of that I have to write
>
>    select "col1", "col2"
>       from "my_table";
>
> I dont understand this...is there a way to use
> the more comfortable form without "" ?

Double-quotes should only be necessary if your table names are
MixedCase.

-Doug
--
Let us cross over the river, and rest under the shade of the trees.
   --T. J. Jackson, 1863

В списке pgsql-general по дате отправления:

Предыдущее
От: Jeff Eckermann
Дата:
Сообщение: Re: copy notice
Следующее
От: Pam Wampler
Дата:
Сообщение: Re: copy notice