需要建立的表

技术交流17年前 (2007)发布
57 0

archives 数据表新增 vote (投票统计,与原来投票系统分开),并创建投票统计表
新增vote字段

Alter TABLE `dede_archives` ADD `vote` INT DEFAULT ‘0’ NOT NULL ;

创建统计表

Create TABLE `dede_review` (
`id` int(11) NOT NULL auto_increment,
`str_ip` varchar(32) NOT NULL,
`num_arc` int(11) NOT NULL,
`date_review` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `str_ip` (`str_ip`,`num_arc`)
) ENGINE=MyISAM DEFAULT CHARSET=gb2312 AUTO_INCREMENT=66 ;

© 版权声明

相关文章

暂无评论

暂无评论...