Re: Alter Table command

From: Thomas Kyte <tkyte_at_us.oracle.com>
Date: Fri, 26 Feb 1999 14:22:49 GMT
Message-ID: <36d6adbb.4274145_at_192.86.155.100>


A copy of this was sent to jruper <jruper_at_cpcug.org> (if that email address didn't require changing) On Thu, 25 Feb 1999 23:55:12 GMT, you wrote:

>Can the Alter Table command be used to remove a column
>from an existing table? If so how do I do it?
>

not until Oracle8i (8.1).

Then you can:

  • alter the table to set a column 'unused'. this is a flag deletion. column no longer appears in the data dictionary but storage is not reclaimed
  • you can set >1 column 'ununsed'
  • you can alter the table to drop unused. this reclaims the space (usefull when you have >1 column to drop. you can set 2 of them unused and then drop unused making only 1 pass on the table).
  • you can alter the table and drop the column. this is the same as marking it unused and dropping unused.

>TIA
>
>Jim Ruper
 

Thomas Kyte
tkyte_at_us.oracle.com
Oracle Service Industries
Reston, VA USA

--
http://govt.us.oracle.com/    -- downloadable utilities
 
----------------------------------------------------------------------------
Opinions are mine and do not necessarily reflect those of Oracle Corporation
Received on Fri Feb 26 1999 - 15:22:49 CET

Original text of this message