From: davyd <davydky@gmail.com>
To: pgsql-admin@postgresql.org
Subject: dynamic SQL
Date: Wed, 10 Sep 2008 10:45:21 -0500
Message-ID: <a354e4430809100845r4a85d789u535ef54ce9adb46a@mail.gmail.com> (raw)
Hi list,
I need to create a sql where the name of a tabla is on a variable..
*vbuffer * varchar;
SELECT buffer
INTO vbuffer
FROM rutas r, unidades u
WHERE r.codigo_ruta = u.codigo_ruta AND
u.codigo_uni = 'B15_AFF666';
SELECT within(the_geom,(SELECT geomunion(the_geom) from var *vbuffer*)) as
inside
Thanks..
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-admin@postgresql.org
Cc: davydky@gmail.com
Subject: Re: dynamic SQL
In-Reply-To: <a354e4430809100845r4a85d789u535ef54ce9adb46a@mail.gmail.com>
* 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