pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robby Russell <robby@planetargon.com>
To: Michelle Konzack <linux4michelle@freenet.de>
Cc: pgsql-php@postgresql.org
Subject: Re: How to create a new Table in prostgresql from a
Date: Mon, 16 Aug 2004 10:31:45 -0700
Message-ID: <1092677505.19357.15.camel@vacant> (raw)
In-Reply-To: <20040816171128.GD25345@freenet.de>
References: <20040814151530.GC28829@freenet.de>
	<cfm559$6jg$1@news.hub.org>
	<20040816171128.GD25345@freenet.de>

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@planetargon.com
* 503.351.4730  | blog.planetargon.com
* PHP/PostgreSQL Hosting & Development
****************************************/

Attachments:

  signature.asc (application/pgp-signature, 188B) download

view thread (9+ messages)  latest in thread

Message-ID: <1092677505.19357.15.camel@vacant>
Permalink:  ../1092677505.19357.15.camel@vacant/
Also on:    postgresql.org/message-id/1092677505.19357.15.camel@vacant

 · 

reply

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-php@postgresql.org
  Cc: robby@planetargon.com, linux4michelle@freenet.de
  Subject: Re: How to create a new Table in prostgresql from a
  In-Reply-To: <1092677505.19357.15.camel@vacant>
  References: <20040814151530.GC28829@freenet.de> <cfm559$6jg$1@news.hub.org> <20040816171128.GD25345@freenet.de> <1092677505.19357.15.camel@vacant>

* 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