pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: aklaver@comcast.net
Cc: pgsql-sql@postgresql.org, Mulham freshcode <mulhamcode@yahoo.com>
Cc: A. Kretschmer <andreas.kretschmer@schollglas.com>
Subject: Re: select into
Date: Fri, 24 Nov 2006 11:02:00 -0500
Message-ID: <4198.1164384120@sss.pgh.pa.us> (raw)
In-Reply-To: <200611240645.33431.aklaver@comcast.net>
References: <20061124042134.55885.qmail@web90512.mail.mud.yahoo.com>
	<28318.1164343519@sss.pgh.pa.us>
	<200611240645.33431.aklaver@comcast.net>

Adrian Klaver <aklaver@comcast.net> writes:
> On Thursday 23 November 2006 08:45 pm, Tom Lane wrote:
>> This should work --- in PG 8.1 or later.

> The documentation for pl/pgsql  in 8.1 and higher says different. 

> http://www.postgresql.org/docs/8.1/interactive/plpgsql-statements.html#PLPGSQL-STATEMENTS-EXECUTING-...
> " SELECT INTO is not currently supported within EXECUTE."

That says you can't do
	EXECUTE 'select ... into foo ...';
which is not the same thing as
	EXECUTE 'select ...' into foo;

			regards, tom lane



view thread (43+ messages)  latest in thread

Message-ID: <4198.1164384120@sss.pgh.pa.us>
Permalink:  ../4198.1164384120@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/4198.1164384120@sss.pgh.pa.us

 · 

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: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, aklaver@comcast.net, mulhamcode@yahoo.com, andreas.kretschmer@schollglas.com
  Subject: Re: select into
  In-Reply-To: <4198.1164384120@sss.pgh.pa.us>

* 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