|
-
Sep 8th, 2005, 08:12 AM
#1
Thread Starter
Member
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.
-
Sep 8th, 2005, 08:26 AM
#2
<?="Moderator"?>
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
-
Sep 8th, 2005, 08:50 AM
#3
Thread Starter
Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|