Can I use variable to store sql data?

From: NosyMan <nosyman(at)gmail(dot)com>
To: pgsql-patches(at)postgresql(dot)org
Subject: Can I use variable to store sql data?
Date: 2005-10-17 06:55:50
Message-ID: 200510170955.50217.nosyman@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Hi,

The scenario:
SELECT id_product FROM products WHERE product_code='PRD-030';

Now I want to insert id_product into another table :

INSERT INTO product_sales( id_product, sale_date)
INSERT INTO product_sales( id_product, sale_date)
INSERT INTO product_sales( id_product, sale_date)

In response to

  • small typo at 2005-10-16 17:57:58 from Euler Taveira de Oliveira

Browse pgsql-patches by date

  From Date Subject
Next Message NosyMan 2005-10-17 06:59:49 Can I use variable to store sql data - II
Previous Message Joe Conway 2005-10-17 02:21:12 Re: [HACKERS] Patching dblink.c to avoid warning about