From: Tomasz Myrta <jasiek@klaster.net>
To: Kumar <sgnerd@yahoo.com.sg>
Cc: psql <pgsql-sql@postgresql.org>
Subject: Re: Problem with dynamic query
Date: Fri, 05 Dec 2003 14:02:03 +0100
Message-ID: <3FD081CB.2050901@klaster.net> (raw)
In-Reply-To: <01c301c3bb2d$76596b80$7502a8c0@hdsc.com>
References: <01c301c3bb2d$76596b80$7502a8c0@hdsc.com>
Dnia 2003-12-05 13:43, Użytkownik Kumar napisał:
> Why is it so. Cant I use 'INTO [variable_name]' inside a dynamic query.
> Please shed some light.
Well, you didn't read the manual, did you?
9.5.4. Executing dynamic queries
"the only way to extract a result from a dynamically-created SELECT is
to use the FOR-IN-EXECUTE form"
Regards,
Tomasz Myrta
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: jasiek@klaster.net, sgnerd@yahoo.com.sg
Subject: Re: Problem with dynamic query
In-Reply-To: <3FD081CB.2050901@klaster.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox