Re: Error when following a documentation

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: Error when following a documentation
Дата
Msg-id CAKFQuwbmSz=FvxH3aCMkL0aPrtFXc9v_2WFNtdVmv96rMeY+WQ@mail.gmail.com
обсуждение исходный текст
Ответ на Error when following a documentation  (PG Doc comments form <noreply@postgresql.org>)
Список pgsql-docs
On Tuesday, August 28, 2018, PG Doc comments form <noreply@postgresql.org> wrote:

postgres=# DECLARE
postgres-#     key integer;
ERROR:  syntax error at or near "integer"
LINE 2:     key integer;
                ^

You are writing pl/psql language code at the SQL input prompt.  That won't work.  You have to either use the SQL DO command or write a function.

David J.
 

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

Предыдущее
От: PG Doc comments form
Дата:
Сообщение: Error when following a documentation
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Limitation of prepared statement name