DBAsupport.com Forums - Powered by vBulletin
Results 1 to 4 of 4

Thread: Drop column

  1. #1
    Join Date
    Aug 2002
    Posts
    27
    Hi all,
    May be this is a very simple question!!
    How can I drop a column from a table in Oracle SQL 7.3
    Thanks

  2. #2
    Join Date
    Jan 2001
    Posts
    3,134
    I am fairly certain that the ALTER TABLE DROP COLUMN command was added in Oracle 8i. If this is the case than you have to drop and re-create the table and then selectively import your data. Take a good backup of the table first. I hope it isn’t too big.

    MH
    I remember when this place was cool.

  3. #3
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    or...
    1. rename your table to foo_old
    2. create table foo ()...
    3. insert into foo select f1, f2, f3 from foo_old;
    Jeff Hunter

  4. #4
    Join Date
    Aug 2002
    Posts
    27
    Thank you very much

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width