Re: CREATE TABLE with a name derived from a string

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: John Savage <JSavage(at)data-mate(dot)com>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: CREATE TABLE with a name derived from a string
Date: 2003-02-14 20:16:05
Message-ID: 20030214121351.F66049-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Fri, 14 Feb 2003, John Savage wrote:

> I came across the EXECUTE command while googling for a solution to this
> problem but found
> a) it was incredibly hard to read because of all the quotes and
> b) I couldn't find much documentation for it. It isn't mentioned on the main
> red hat postgreSQL manual pages at all
> (http://www.redhat.com/docs/manuals/database/) and the word EXECUTE isn't
> the best word to google on :). The best resource for plpgsql I could find is
> at http://www.phpfreaks.com/postgresqlmanual/page/plpgsql.html but I wasn't
> sure if this was going to help me. Are there any better resources for
> plpgsql? I'll look into it more now anyway. Thanks.

I don't know if techdocs has anything more useful, otherwise the official
interactive docs have a short section. (Programmer's Guide)

The short form is that for most general queries you want to run you can
make a string that contains the full query and then EXECUTE that string.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message scott.marlowe 2003-02-14 20:21:11 Re: FreeBSD: SMP and PostgreSQL
Previous Message Eric B.Ridge 2003-02-14 20:14:43 "iscachable" functions