JSP在线商城系统设计 第5页
`AdminName` char(12) DEFAULT NULL,
`LoginName` char(12) DEFAULT NULL,
`LoginPwd` char(12) DEFAULT NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=gb2312;
(2)建立购物车信息(cart)表:
DROP TABLE IF EXISTS `cart`;
CREATE TABLE `cart` (
`ID` int(4) NOT NULL AUTO_INCREMENT,
`Member` int(4) NOT NULL,
`Money` decimal(9,2) DEFAULT NULL,
`CartStatus` int(4) DEFAULT NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=gb2312;
(3)建立购物车消费信息(cartselectedmer)表:
DROP TABLE IF EXISTS `cartselectedmer`;
CREATE TABLE `cartselectedmer` (
`ID` int(4) NOT NULL AUTO_INCREMENT,
`Cart` int(4) NOT NULL,
`Merchandise` int(4) NOT NULL,
`Number` int(4) NOT NULL DEFAULT '1',
`Price` decimal(8,2) NOT NULL DEFAULT '0.00',
`Money` decimal(9,2) NOT NULL DEFAULT '0.00',
PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=gb2312;
(4)建立商品类别信息(category)表:
DROP TABLE IF EXISTS `category`;
CREATE TABLE `category` (
`ID` int(4) NOT NULL AUTO_INCREMENT,
`CateName` char(40) DEFAULT NULL,
`CateDesc` text,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=gb2312;
(5)建立用户留言信息(leaveword)表:
DROP TABLE IF EXISTS `leaveword`;
CREATE TABLE `leaveword` (
`ID` int(4) NOT NULL AUTO_INCREMENT,
`Member` int(4) NOT NULL,
`Admin` int(4) DEFAULT NULL,
`Title` char(60) DEFAULT NULL,
`Content` text,
`LeaveDate` datetime DEFAULT NULL,
`AnswerContent` text,
`AnswerDate` datetime DEFAULT NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=gb2312;
(6)建立用户信息(member)表:
DROP TABLE IF EXISTS `member`;
CREATE TABLE `member` (
`ID` int(4) NOT NULL AUTO_INCREMENT,
`Memberlevel` int(4) NOT NULL,
`LoginName` char(12) DEFAULT NULL,
`LoginPwd` char(12) DEFAULT NULL,
`MemberName` char(20) DEFAULT NULL,
`Phone` char(15) DEFAULT NULL,
`Address` varchar(100) DEFAULT NULL,
`Zip` char(10) DEFAULT NULL,
`RegDate` datetime DEFAULT NULL,
`LastDate` datetime DEFAULT NULL,
`LoginTimes` int(4) DEFAULT NULL,
`EMail` varchar(100) DEFAULT NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=gb2312;
(7)建立用户等级信息(memberlevel)表:
DROP TABLE IF EXISTS `memberlevel`;
CREATE TABLE `memberlevel` (
`ID` int(4) NOT NULL AUTO_INCREMENT,
`LevelName` char(20) DEFAULT NULL,
`Favourable` int(4) DEFAULT NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=gb2312;
(8)建立子类商品信息(merchandise)表:
DROP TABLE IF EXISTS `merchandise`;
CREATE TABLE `merchandise` (
`ID` int(4) NOT NULL AUTO_INCREMENT,
`Category` int(4) NOT NULL,
`MerName` char(40) DEFAULT NULL,
`Price` decimal(8,2) DEFAULT NULL,
`SPrice` decimal(8,2) DEFAULT NULL,
`MerModel` char(40) DEFAULT NULL,
`Picture` varchar(100) DEFAULT NULL,
`MerDesc` text,
`Manufacturer` char(60) DEFAULT NULL,
`LeaveFactoryDate` datetime DEFAULT NULL,
`Special` int(4) DEFAULT NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=gb2312;
(9)建立订单信息(orders)表:
DROP TABLE IF EXISTS `orders`;
CREATE TABLE `orders` (
`ID` int(4) NOT NULL AUTO_INCREMENT,
`Member` int(4) NOT NULL,
`Cart` int(4) NOT NULL,
`OrderNO` char(20) DEFAULT NULL,
`OrderDate` datetime DEFAULT NULL,
`OrderStatus` int(4) DEFAULT NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=gb2312;
上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] ... 下一页 >>
JSP在线商城系统设计 第5页下载如图片无法显示或论文不完整,请联系qq752018766