[www.it123.org看例子](http://www.it123.org)
CREATE TABLE `comment` (
`comment_id` int(10) unsigned NOT NULL AUTO_INCREMENT,//回復id也是自然id,當然也可以分開
`comment_uid` varchar(30) DEFAULT NULL,//用戶id,游客可以是ip
`comment_text` text,//評論內容
`comment_pid` int(10) DEFAULT NULL,//引用的id或者回復id
`comment_item_id` int(10) DEFAULT NULL,//文章id或者帖子id,資訊id等總之是那篇文章下的評論就是哪個id
`comment_module_id` tinyint(2) DEFAULT '1',//模塊id可選(根據業務需求走)
`comment_time` int(11) DEFAULT NULL,//評論時間
PRIMARY KEY (`comment_id`)
) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;