public inbox for [email protected]
help / color / mirror / Atom feedFrom: David G. Johnston <[email protected]>
To: [email protected] <[email protected]>
To: [email protected] <[email protected]>
Subject: Re: Error when following a documentation
Date: Tue, 28 Aug 2018 08:56:08 -0700
Message-ID: <CAKFQuwbmSz=FvxH3aCMkL0aPrtFXc9v_2WFNtdVmv96rMeY+WQ@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
On Tuesday, August 28, 2018, PG Doc comments form <[email protected]>
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.
view thread (2+ messages)
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: Error when following a documentation
In-Reply-To: <CAKFQuwbmSz=FvxH3aCMkL0aPrtFXc9v_2WFNtdVmv96rMeY+WQ@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox