Skip site navigation (1) Skip section navigation (2)

Re: Create table doesn't work in plpgsql

From: Jie Liang <jliang(at)ipinc(dot)com>
To: Volker Paul <vpaul(at)dohle(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Create table doesn't work in plpgsql
Date: 2000-12-21 18:20:50
Message-ID: Pine.BSF.4.10.10012211016060.56837-100000@tidal.ipinc.com (view raw or flat)
Thread:
Lists: pgsql-sql
Hi,there,

I am not quite sure what you try to do.
However, plpgsql allows you use any DDL, most of functions defined and
sql operators.
I don't see the problem.

Jie LIANG

Internet Products Inc.

10350 Science Center Drive
Suite 100, San Diego, CA 92121
Office:(858)320-4873

jliang(at)ipinc(dot)com
www.ipinc.com

On Thu, 21 Dec 2000, Volker Paul wrote:

> 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
> 


In response to

pgsql-sql by date

Next:From: Mike CastleDate: 2000-12-21 19:08:33
Subject: Re: Invoice number
Previous:From: John HaslerDate: 2000-12-21 17:55:05
Subject: Re: Invoice number

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group