Results 1 to 3 of 3

Thread: MySQL console - adding more fields to a table

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2005
    Posts
    51

    MySQL console - adding more fields to a table

    Hey guys,

    I do apologise if this is in the wrong place on the forum, wasn't sure where to put it.

    what i would liek to know is, how can i add more fields to a table that has already been created via the MySQL console.

    Cheers.


  2. #2
    <?="Moderator"?> john tindell's Avatar
    Join Date
    Jan 2002
    Location
    Brighton, UK
    Posts
    1,099

    Re: MySQL console - adding more fields to a table

    You need to use ALTER. Eg
    Code:
    ALTER TABLE t2 ADD d TIMESTAMP;
    Heres the link for ALTER in the MySQL manual
    http://dev.mysql.com/doc/mysql/en/alter-table.html

  3. #3

    Thread Starter
    Member
    Join Date
    Apr 2005
    Posts
    51

    Re: MySQL console - adding more fields to a table

    oh thats how you do it.

    Thanks. Much appreciated.

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