Re: Help with queries...

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Help with queries...
Дата
Msg-id 27942.1109283734@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Help with queries...  ("Cristian Prieto" <cristian@clickdiario.com>)
Список pgsql-general
"Cristian Prieto" <cristian@clickdiario.com> writes:
> The book says:
> [snip]

> But my table name Grupos is not a reserved keyword, so SELECT * FROM Grupos;
> should work, right??? but guess what... It doesn't work too... I need to
> pass SELECT * FROM "Grupos";

You didn't read far enough:

    Quoting an identifier also makes it case-sensitive, whereas unquoted
    names are always folded to lower case. For example, the identifiers FOO,
    foo, and "foo" are considered the same by PostgreSQL, but "Foo" and
    "FOO" are different from these three and each other.

Had you originally created the table as Grupos without quotes, then you
could refer to it as Grupos without quotes.  But you evidently created
it with quotes (or used a tool that added quotes for you) and now you're
stuck with using quotes forevermore, unless you rename the table.

            regards, tom lane

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

Предыдущее
От: Rick Casey
Дата:
Сообщение: Re: basic trigger using OLD not working?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: basic trigger using OLD not working?