Re: Can I use variable to store sql data - II

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: NosyMan <nosyman(at)gmail(dot)com>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: Can I use variable to store sql data - II
Date: 2005-10-17 13:18:40
Message-ID: 200510171518.41136.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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/

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Joe Conway 2005-10-18 02:56:49 Re: [HACKERS] Patching dblink.c to avoid warning about
Previous Message Bruce Momjian 2005-10-17 12:36:00 Re: [HACKERS] Patching dblink.c to avoid warning about