View Single Post

   
  #2 (permalink)  
Old 04-18-2008, 12:59 AM
Peter Eisentraut
 
Posts: n/a
Default Re: Can I use variable to store sql data - II

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/

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Reply With Quote