Re: How to create a new Table in prostgresql from a

From: Robby Russell <robby(at)planetargon(dot)com>
To: Michelle Konzack <linux4michelle(at)freenet(dot)de>
Cc: pgsql-php(at)postgresql(dot)org
Subject: Re: How to create a new Table in prostgresql from a
Date: 2004-08-16 17:31:45
Message-ID: 1092677505.19357.15.camel@vacant
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

On Mon, 2004-08-16 at 10:11, Michelle Konzack wrote:
> Am 2004-08-15 00:55:34, schrieb Raoul Buzziol:
> > Michelle Konzack wrote:
> >
> > > Hello,
> > >
> > > Never I have done this before (no need) but now I nee to create a
> > > new table with some colums from a Webinterface and do not know how
> > > to do that.
> >
> > You have to execute a query:
> >
> > pg_query(connection, "CREATE TABLE tablename (id serial, val int4...);");
>
> :-/
>
> I was looking for a php-Command or somthing like this to create the
> table but not thinking on a pg_query WHICH execute the command...
>

Well, a CREATE TABLE is just another type of SQL Query that you can run.
It's not a 'command' exactly..just a query.

-Robby

--
/***************************************
* Robby Russell | Owner.Developer.Geek
* PLANET ARGON | www.planetargon.com
* Portland, OR | robby(at)planetargon(dot)com
* 503.351.4730 | blog.planetargon.com
* PHP/PostgreSQL Hosting & Development
****************************************/

In response to

Browse pgsql-php by date

  From Date Subject
Next Message Pedro B. 2004-08-16 17:36:06 Re: How to create a new Table in prostgresql from a Webinterface
Previous Message Michelle Konzack 2004-08-16 17:11:28 Re: How to create a new Table in prostgresql from a Webinterface