Re: create function problem

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: create function problem
Дата
Msg-id 24380.1079709952@sss.pgh.pa.us
обсуждение исходный текст
Ответ на create function problem  ("Thomas Leung" <thomasleung@hotmail.com>)
Список pgsql-admin
"Thomas Leung" <thomasleung@hotmail.com> writes:
>     str := to_char($1, "YYYY");

> ERROR:  Attribute "YYYY" not found

Double and single quotes are not interchangeable.  Here you have written
an identifier, not a string literal.  You'll need
     str := to_char($1, ''YYYY'');
or
     str := to_char($1, \'YYYY\');
according to taste.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: unimplemented functions
Следующее
От: "scott.marlowe"
Дата:
Сообщение: Re: Re-Init database cluster.