Sometimes wee need to add a comment on a table for more readability means to define what is the use of that table.
We can do this at the time of table creation or by ALTER command after creating the table.
- At the time of table creation:
CREATE TABLE `white_words` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`word` varchar(45) DEFAULT NULL COMMENT ,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Contains list of Whitewords';
After creating table:
ALTER TABLEwhite_words COMMENT = 'Contains list of Whitewords';
Hope this will help you :)
0 Comment(s)