Re: Can I use variable to store sql data - II - Mailing list pgsql-patches

From Peter Eisentraut
Subject Re: Can I use variable to store sql data - II
Date
Msg-id 200510171518.41136.peter_e@gmx.net
Whole thread Raw
In response to Can I use variable to store sql data - II  (NosyMan <nosyman@gmail.com>)
List pgsql-patches
NosyMan wrote:
> Can I set id_product from statement 1 to a variable and use that
> variable into statements 2.

You can't do that in plain SQL, but perhaps you want to look into
PL/pgSQL.

Please don't post to pgsql-patches unless you have a patch.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Patching dblink.c to avoid warning about
Next
From: Joe Conway
Date:
Subject: Re: [HACKERS] Patching dblink.c to avoid warning about