风云2

第九周

情到浓时终转凉″ 提交于 2019-12-02 14:55:48
1.创建数据库与表 数据库脚本 news.sql SET FOREIGN_KEY_CHECKS=0; DROP TABLE IF EXISTS `comment`; CREATE TABLE `comment` ( `cid` int(11) NOT NULL AUTO_INCREMENT, `cnid` int(11) NOT NULL, `ccontent` text, `cdate` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, `cip` varchar(15) DEFAULT NULL, `cauthor` varchar(30) DEFAULT NULL, PRIMARY KEY (`cid`) ) ENGINE=InnoDB AUTO_INCREMENT=42 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of comment -- ---------------------------- INSERT INTO `comment` VALUES ('4', '73', '无聊!!', '2010-08-10 13:43:53', '127.0.0.1', '这家伙很懒什么也没留下'); INSERT INTO