Prepared query ?

From: "Dinesh Pandey" <dpandey(at)secf(dot)com>
To: "'PostgreSQL'" <pgsql-sql(at)postgresql(dot)org>
Subject: Prepared query ?
Date: 2005-04-14 14:28:40
Message-ID: 20050414143144.1704853689@svr1.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

How can I

1. Write a prepared query and
2. Set values at run time and
3. Execute that query for different values.

LOOP

...

...

sql := INSERT INTO MYTABLE VALUES(?, ?);

..

--EXECUTE (sql);

END LOOP;

Regards
Dinesh Pandey

----------------------------------------------------------------------------
------
Dinesh Pandey
Sr. Software Engineer

Second Foundation (India) Pvt. Ltd.
Plot# 52
Industrial Area, Phase II
Chandigarh. (India)
PH: (O) 0172-2639202, Extn: 233

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2005-04-14 14:53:14 Re: dynamic 'INSERT' query?
Previous Message Dinesh Pandey 2005-04-14 12:03:13 Re: dynamic 'INSERT' query?