Re: dropping table column
From: Olli Heinamaki <heinamak_at_plootu.Helsinki.FI>
Date: 5 Oct 1993 08:36:36 +0200
Message-ID: <28r4lk$28e_at_plootu.Helsinki.FI>
Date: 5 Oct 1993 08:36:36 +0200
Message-ID: <28r4lk$28e_at_plootu.Helsinki.FI>
In <8044.2cb05683_at_hayes.com> fgreene_at_hayes.com writes:
>correct. The only way to do it is to drop the entire t able and then recreate
>it using the correct column definitions. If you have to retain the data
>you must make sure to save it as well.
SQL> create table Table_2 as select Col_1, Col_2, Col_4 from Table_1;
SQL> drop table Table_1 SQL> create table Table_1 as select * from Table_2; SQL> drop table Table_2;
Now you have Table_1 with the columns you wanted.
-- ----------------------------------------------------------------- Olli Heinamaki, Computing Center, University of Helsinki, Finland Mail : Olli.Heinamaki_at_Helsinki.FI Tel.: + 358-0-708-4645 (work) heinamaki_at_finuh.bitnet + 358-0-345-3580 (home)Received on Tue Oct 05 1993 - 07:36:36 CET