X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 687A2D1B533 for ; Fri, 12 Sep 2003 02:31:32 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 73454-01 for ; Thu, 11 Sep 2003 23:31:25 -0300 (ADT) Received: from server146.hostingrevolution.com (server146.hostingrevolution.com [64.21.143.245]) by svr1.postgresql.org (Postfix) with ESMTP id 4E0CCD1B501 for ; Thu, 11 Sep 2003 23:31:21 -0300 (ADT) Received: from 223.a.002.pth.iprimus.net.au ([210.50.108.223] helo=athlon2000) by server146.hostingrevolution.com with smtp (Exim 4.22) id 19xdiX-0003ix-Hy for pgsql-sql@postgresql.org; Thu, 11 Sep 2003 21:31:04 -0500 Message-ID: <001501c378d6$3aa78f20$df6c32d2@athlon2000> From: "Richard Sydney-Smith" To: Subject: How do I replace select ... into commands? Date: Fri, 12 Sep 2003 10:33:12 +0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0012_01C37919.441B9EF0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - server146.hostingrevolution.com X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - ibisaustralia.com X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.1 tagged_above=0.0 required=5.0 tests=BAYES_30, HTML_50_60, RCVD_IN_OSIRUSOFT_COM X-Spam-Level: X-Archive-Number: 200309/89 X-Sequence-Number: 15067 This is a multi-part message in MIME format. ------=_NextPart_000_0012_01C37919.441B9EF0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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. w= hat is the best way to perform this action with the commands offered in plp= gsql? much thanks for the earlier help. Sincerely=20 Richard Sydney-Smith ------=_NextPart_000_0012_01C37919.441B9EF0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I have a number of sybase procedures in wh= ich I use=20 something like
 
declare
mx : integer;
begin
select max(field) from table into mx;
return mx;
end;
 
Postgresql is telling me that select...int= o has not=20 been implemented yet. what is the best way to perform this action with the= =20 commands offered in plpgsql?
 
much thanks for the earlier help.
 
Sincerely
Richard Sydney-Smith
 
------=_NextPart_000_0012_01C37919.441B9EF0--