From: Richard Sydney-Smith <richard@ibisaustralia.com>
To: pgsql-sql@postgresql.org
Subject: How do I replace select ... into commands?
Date: Fri, 12 Sep 2003 10:33:12 +0800
Message-ID: <001501c378d6$3aa78f20$df6c32d2@athlon2000> (raw)
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?
much thanks for the earlier help.
Sincerely
Richard Sydney-Smith
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: richard@ibisaustralia.com
Subject: Re: How do I replace select ... into commands?
In-Reply-To: <001501c378d6$3aa78f20$df6c32d2@athlon2000>
* 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