views:

266

answers:

1

I have been checking the MySql Documentation for Alter Table and it does not seem to include a way to Alter a MySQL Table for adding a comment for the columns. Anybody knows how can i do it? thanks

// for table
ALTER TABLE myTable COMMENT 'Hello World'

// for columns
// ???
+3  A: 

try:

 ALTER TABLE `user` CHANGE `id` `id` INT( 11 ) COMMENT 'id of user'  
Rufinus
It seems to work fine, but is there any other way to do it without including the column definition ?
Jhonny D. Cano -Leftware-
i played around, but it didnt work. this was the minimum set, maybe there is some other way.
Rufinus