Search Postgresql Archives

Re: Hoow do you drop a column in a table

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx
* 503.351.4730  | blog.planetargon.com
* PHP/PostgreSQL Hosting & Development
* --- Now hosting Ruby on Rails Apps ---
****************************************/


---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

               http://www.postgresql.org/docs/faq

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux