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

Thread: renaming column in 9i

  1. #1
    Join Date
    Dec 2001
    Location
    Atlanta
    Posts
    175

    Smile

    Need the syntax if it is possible:

    I want to rename NAME to INSTITUTION_NAME. This field is a NULL and currently has data in it. Working on 9i prod environment.

    Thx

  2. #2
    Join Date
    Sep 2001
    Location
    NJ, USA
    Posts
    1,287
    alter table TTTT add (INSTITUTION_NAME datatype);

    update TTTTT set INSTITUTION_NAME=NAME;

    alter table TTTT drop NAME;

  3. #3
    Join Date
    Dec 2001
    Location
    Atlanta
    Posts
    175
    Thanks Shestakov
    it worked.

  4. #4
    Join Date
    Dec 2001
    Location
    Atlanta
    Posts
    175
    For your info, when dropping column in 8i or 9i add column
    for example:

    alter table TTTT drop column NAME;

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