From: Volker Paul <vpaul@dohle.com>
To: pgsql-sql@postgresql.org
Subject: Re: Create table doesn't work in plpgsql
Date: Thu, 21 Dec 2000 11:51:38 +0100
Message-ID: <3A41E0BA.FBEDF52F@dohle.com> (raw)
References: <Pine.BSF.4.21.0012191350250.41512-100000@jliang.ipinc.com>
Hi,
> I don't think you can use DDL(data definition language) in PL/SQL.
> create table is not DML(data munipulation language) instead
> it's a DDL.
Thanks, but that leaves me with a problem.
What I really want to do is something like
select str from person where id=1234;
where str is a string that contains an expression like
famname || ', ' || givname
i.e. the final select is
select famname || ', ' || givname from person where id=1234;
I know it's possible by building the select e.g. in bash
and calling psql with it as an argument, but do you see a possibility
that is closer to Postgres, e.g. in plpgsql?
Volker Paul
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: vpaul@dohle.com
Subject: Re: Create table doesn't work in plpgsql
In-Reply-To: <3A41E0BA.FBEDF52F@dohle.com>
References: <Pine.BSF.4.21.0012191350250.41512-100000@jliang.ipinc.com> <3A41E0BA.FBEDF52F@dohle.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