4.数据库脚本
------新闻表
CREATE TABLE(
`arc_id` int(4) NOT NULL auto_increment,
`title` varchar(100) default NULL,
`content` text,
`rq` date default NULL, PRIMARY KEY (`arc_id`)
) ENGINE=MyISAM DEFAULT CHARSET=UTF-8 AUTO_INCREMENT=42 ;
------ 种类表
CREATE TABLE `category` (
`c_id` int(4) NOT NULL auto_increment,
`category` varchar(100) default NULL, PRIMARY KEY (`c_id`)
) ENGINE=MyISAM DEFAULT CHARSET=UTF-8 AUTO_INCREMENT=28 ;
------用户表
CREATE TABLE `hy` (
`hy_id` int(4) NOT NULL auto_increment,
`userid` varchar(50) default NULL,
`password` varchar(50) default NULL,
`email` varchar(50) default NULL,
`name` varchar(50) default NULL,
`sex` varchar(20) default NULL,
`tel` varchar(50) default NULL,
`zip` varchar(50) default NULL,
`post_address` varchar(100) default NULL,
`je` int(4) NOT NULL default '0',
`question` varchar(100) default NULL,
`ans` varchar(100) default NULL, PRIMARY KEY (`hy_id`)
) ENGINE=MyISAM DEFAULT CHARSET=UTF-8 AUTO_INCREMENT=47 ;
|