From: Stephan Szabo <sszabo@megazone.bigpanda.com>
To: Richard Sydney-Smith <richard@ibisaustralia.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: How do I replace select ... into commands?
Date: Thu, 11 Sep 2003 19:46:28 -0700 (PDT)
Message-ID: <20030911194512.Q47864-100000@megazone.bigpanda.com> (raw)
In-Reply-To: <001501c378d6$3aa78f20$df6c32d2@athlon2000>
On Fri, 12 Sep 2003, Richard Sydney-Smith wrote:
> I have a number of sybase procedures in which I use something like
>
> declare
> mx : integer;
> begin
> select max(field) from table into mx;
> return mx;
> end;
>
> Postgresql is telling me that select...into has not been implemented
> yet. what is the best way to perform this action with the commands
> offered in plpgsql?
Something like the above should work, what's the exact function and error
message and what version are you using?
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: pgsql-sql@postgresql.org
Cc: sszabo@megazone.bigpanda.com, richard@ibisaustralia.com
Subject: Re: How do I replace select ... into commands?
In-Reply-To: <20030911194512.Q47864-100000@megazone.bigpanda.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox