MySQL Forums
Forum List  »  Newbie

Re: Modify table structure
Posted by: Shantanu Oak
Date: July 12, 2005 03:18AM

create table new_table
select info1, info3 as info2, info2 as info3 from old_table;

drop table old_table;

rename table new_table to old_table;

Options: ReplyQuote


Subject
Written By
Posted
July 12, 2005 12:33AM
Re: Modify table structure
July 12, 2005 03:18AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.