pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Florent Guillaume <efgeor@noos.fr>
Cc: pgsql-hackers@postgresql.org
Cc: pgman@candle.pha.pa.us
Subject: Re: Re: [SQL] PL/PGSQL function with parameters
Date: Tue, 06 Feb 2001 19:43:10 -0500
Message-ID: <26601.981506590@sss.pgh.pa.us> (raw)
In-Reply-To: <20010206221522.A21727@twin.efge.org>
References: <7F124BC48D56D411812500D0B747251480F3D4@FILESERVER002>
	<7F124BC48D56D411812500D0B747251480F3D4@FILESERVER002>
	<20010206221522.A21727@twin.efge.org>

Florent Guillaume <efgeor@noos.fr> writes:
> On this same subject, the plpgsql doc says to use
> 	SELECT expression INTO var FROM ...
> but Bruce's book, in several examples ("PL/PGSQL Functions" for instance,
> node203.html) uses
> 	SELECT INTO var expression FROM ...
> Both should work, but there may be there's something to straighten up here.

IIRC, the plpgsql code is actually *very* lax about where you put the
INTO; it'll suck it out from almost anyplace in the query string ...

			regards, tom lane



view thread (15+ messages)  latest in thread

Message-ID: <26601.981506590@sss.pgh.pa.us>
Permalink:  ../26601.981506590@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/26601.981506590@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, efgeor@noos.fr, pgsql-hackers@postgresql.org, pgman@candle.pha.pa.us
  Subject: Re: [SQL] PL/PGSQL function with parameters
  In-Reply-To: <26601.981506590@sss.pgh.pa.us>
  References: <7F124BC48D56D411812500D0B747251480F3D4@FILESERVER002> <20010206221522.A21727@twin.efge.org> <26601.981506590@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