pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomasz Myrta <jasiek@klaster.net>
To: Rachel.Vaudron <rachel@lazaret.unice.fr>
Cc: pgsql-sql@postgresql.org
Subject: Re: Alter table
Date: Fri, 08 Nov 2002 09:44:06 +0100
Message-ID: <3DCB7956.5040309@klaster.net> (raw)
References: <Pine.LNX.4.33.0211080811160.12232-100000@lazaret.unice.fr>

Uz.ytkownik Rachel.Vaudron napisa?:
> Hi,
> 
> I wonder if it is possible to remove a field of a table ?
> I haven't found anything about this into the reference manual.
> Can I do something like that ?:
> 
> ALTER TABLE table
> DROP COLUMN column;
alter table xxx rename to temp;
create table xxx as
  select field1, field2, ...without some field... from temp;
drop table temp;

Tomasz Myrta




view thread (22+ messages)  latest in thread

Message-ID: <3DCB7956.5040309@klaster.net>
Permalink:  ../3DCB7956.5040309@klaster.net/
Also on:    postgresql.org/message-id/3DCB7956.5040309@klaster.net

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: jasiek@klaster.net, rachel@lazaret.unice.fr
  Subject: Re: Alter table
  In-Reply-To: <3DCB7956.5040309@klaster.net>

* 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