Answers:
“可以使用该COMMENT选项为列指定注释。注释由SHOW CREATE TABLEand SHOW FULL COLUMNS语句显示。该选项自MySQL 4.1起可以使用。(允许,但在早期版本中则被忽略。)”
举个例子
--
-- Table structure for table 'accesslog'
--
CREATE TABLE accesslog (
aid int(10) NOT NULL auto_increment COMMENT 'unique ID for each access entry',
title varchar(255) default NULL COMMENT 'the title of the page being accessed',
path varchar(255) default NULL COMMENT 'the local path of teh page being accessed',
....
) TYPE=MyISAM;
/* comment here */
这是一个例子: SELECT 1 /* this is an in-line comment */ + 1;
--