Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-patches by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group