pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Elphick <olly@lfix.co.uk>
To: Antonio Lagnada <lagnada@tbsoa.com>
Cc: Pgsql-sql <pgsql-sql@postgresql.org>
Subject: Re: Deleting a COL
Date: Sat, 01 Apr 2000 22:46:53 +0100
Message-ID: <200004012147.e31LkrR16199@linda.lfix.co.uk> (raw)
In-Reply-To: <lagnada@tbsoa.com> <NEBBLGHIMLDEONPJLLHHOEAJCAAA.lagnada@tbsoa.com>
References: <NEBBLGHIMLDEONPJLLHHOEAJCAAA.lagnada@tbsoa.com>

"Antonio Lagnada" wrote:
  >
  >Does anyone know how to delete a column in PostgreSQL?
  >I cannot find the SQL command to do it.

ALTER TABLE DROP COLUMN colname

(but I don't think it's supported before release 7.0)

-- 
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight                              http://www.lfix.co.uk/oliver
               PGP key from public servers; key ID 32B8FAA1
                 ========================================
     "Therefore, if anyone is in Christ, he is a new   
      creation; the old has gone, the new has come."   
                      II Corinthians 5:17  





view thread (8+ messages)  latest in thread

Message-ID: <200004012147.e31LkrR16199@linda.lfix.co.uk>
Permalink:  ../200004012147.e31LkrR16199@linda.lfix.co.uk/
Also on:    postgresql.org/message-id/200004012147.e31LkrR16199@linda.lfix.co.uk

 · 

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-sql@postgresql.org
  Cc: olly@lfix.co.uk, lagnada@tbsoa.com
  Subject: Re: Deleting a COL
  In-Reply-To: <200004012147.e31LkrR16199@linda.lfix.co.uk>
  References: <NEBBLGHIMLDEONPJLLHHOEAJCAAA.lagnada@tbsoa.com> <200004012147.e31LkrR16199@linda.lfix.co.uk>

* 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