List:MySQL on Win32« Previous MessageNext Message »
From:<tonu-mysql Date:August 8 1999 6:57pm
Subject:Re: Adding to an already existing table
View as plain text  
> need to add another field to the *same* table, or modify a field, or rename
> a field, do I need to recreate the entire table and move my data across? (By
> field, I mean a column). How would I go about doing this? Say I have a
> column of type int and we decide later that this should really be floator


   For example, you made a field NAME CHAR(40) and want to change it to
SURNAME CHAR(40):

  ALTER TABLE foo CHANGE COLUMN NAME SURNAME CHAR(40);

  That's all!

   Tonu


Thread
Adding to an already existing tableAnukool Lakhina8 Aug
  • Re: Adding to an already existing tabletonu-mysql8 Aug
    • RE: Adding to an already existing tableAnukool Lakhina8 Aug
      • RE: Adding to an already existing tabletonu-mysql8 Aug
    • RE: Adding to an already existing tableAnukool Lakhina8 Aug
Re: Adding to an already existing tablePeter WR9 Aug