List:MySQL on Win32« Previous MessageNext Message »
From:<tonu-mysql Date:August 8 1999 7:06pm
Subject:RE: Adding to an already existing table
View as plain text  
> COOL! But would the ALTER command also work if I need to add another column?
> Or if I want to change the *type* of a column, say from char to int? or from
> set to enum?

   Yes, it works.

 For field adding, use the form
  ALTER TABLE foo ADD COLUMN NAME CHAR(40);
 And don't forget about indexes:
 ALTER TABLE foo ADD KEY NAME (NAME);
  (just as an example)

  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