Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Oracle 8i with Column Delete

Re: Oracle 8i with Column Delete

From: Andrew Mobbs <andrewm_at_chiark.greenend.org.uk>
Date: 01 Nov 2001 18:27:43 +0000 (GMT)
Message-ID: <tFq*hug+o@news.chiark.greenend.org.uk>


Steve <schen_at_prodigy.net> wrote:
>Hi,
>
>Does anyone knows whether Oracle 8i (816+) can delete column directly
>instead of using imp/exp?

Yes. See syntax for ALTER TABLE in the SQL Reference.

ALTER TABLE emp SET UNUSED COLUMN deptno; ALTER TABLE emp DROP COLUMN deptno;

SET UNUSED just deletes the column entry from the data dictionary DROP deletes it, but needs a row-lock on *every* row in the table. Don't do this to your fact table at 10am :-)

-- 
Andrew Mobbs - http://www.chiark.greenend.org.uk/~andrewm/
Received on Thu Nov 01 2001 - 12:27:43 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US