From: | Robby Russell <robby(at)planetargon(dot)com> |
---|---|
To: | Art Fore <art(dot)fore(at)comcast(dot)net> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Hoow do you drop a column in a table |
Date: | 2005-02-09 01:09:38 |
Message-ID: | 1107911379.26814.177.camel@linus |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Tue, 2005-02-08 at 16:37 -0800, Art Fore wrote:
> Using phppgadmin, I tried tropping a column in a table. I comes back to
> try DROP .. CASCADE. Went into psql and typed the following,
>
> ALTER TABLE "MPC" DROP COLUMNG do_not_use CASCADE
>
> It appeared to work but did not drop the column. What is the dprocedure
> for dropping a column? an anyone point me to a document that tells
> EXACTLY how to do this? Also, how do you find out the dependencies it
> says it has? I know of none.
>
> Art
ALTER TABLE foo DROP COLUMN name CASCADE;
--
/***************************************
* 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
* --- Now hosting Ruby on Rails Apps ---
****************************************/
From | Date | Subject | |
---|---|---|---|
Next Message | Art Fore | 2005-02-09 01:30:23 | Re: Hoow do you drop a column in a table |
Previous Message | John DeSoi | 2005-02-09 01:01:54 | Re: Hoow do you drop a column in a table |