![]() ![]() ![]() ![]() |
|||||
|
|||||
¼Ó¥D zhang-yafei ![]()
![]() |
CREATE TABLE IF NOT EXISTS `employees` ( `firstName` varchar(50) NOT NULL, `lastName` varchar(50) NOT NULL, `EmpType` varchar(50) NOT NULL, `age` smallint(6) default NULL, `picture` mediumblob ) ENGINE=InnoDB DEFAULT CHARSET=utf8; INSERT INTO `employees` (`firstName`, `lastName`, `EmpType`, `age`, `picture`) VALUES (¡¥Leverling¡¦, ¡¥Janet¡¦, ¡¥°Æ¥Nªí¡¦, 28, NULL), (¡¥¾G¡¦, ¡¥¦w²N¡¦, ¡¥¾P°â¥Nªí¡¦, 35, NULL), (¡¥»¯¡¦, ¡¥¾ç¡¦, ¡¥±ÄÁʸg²z¡¦, 26, NULL), (¡¥Buchanan¡¦, ¡¥Steven¡¦, ¡¥§Þ³NÁpô¤H¡¦, 56, NULL), (¡¥¤ý¡¦, ¡¥§g¦p¡¦, ¡¥§Þ³NÁpô¤H¡¦, 0, NULL); =========================================================================================== SET SQL_MODE=¡¨NO_AUTO_VALUE_ON_ZERO¡¨; ¡V ¡V ¸ê®Æ®w: `ysf` ¡V CREATE DATABASE ysf; USE ysf; ¡V ¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡V ¡V ¡V ªíªºµ²ºc `footorder` ¡V CREATE TABLE IF NOT EXISTS `footorder` ( `userName` char(50) NOT NULL default ¡¨, `foodName` char(50) NOT NULL default ¡¨, `foodId` char(50) NOT NULL default ¡¨, `foodKind` char(50) NOT NULL default ¡¨, `foodPrice` char(50) NOT NULL default ¡¨, `foodNum` char(50) NOT NULL default ¡¨, `foodMovie` char(50) NOT NULL default ¡¨, `foodDish` char(50) NOT NULL default ¡¨, `foodSalt` char(50) NOT NULL default ¡¨, `foodOrderTime` datetime NOT NULL default ¡¦0000-00-00 00:00:00¡¬, `foodEatTime` datetime NOT NULL default ¡¦0000-00-00 00:00:00¡¬, `foodEatLocation` char(50) NOT NULL default ¡¨, `foodPayMode` char(50) NOT NULL default ¡¨, `foodPayed` char(50) NOT NULL default ¡¨, `foodExchanged` char(50) NOT NULL default ¡¨ ) ENGINE=MyISAM DEFAULT CHARSET=utf8; ¡V ¡V ¿é¥Xªí¤¤ªº¸ê®Æ `footorder` ¡V ¡V ¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡V ¡V ¡V ªíªºµ²ºc `productdetail` ¡V CREATE TABLE IF NOT EXISTS `productdetail` ( `productNum` char(50) NOT NULL default ¡¨, `productKind` char(50) NOT NULL default ¡¨, `productName` char(50) NOT NULL default ¡¨, `productMaterialList` char(50) NOT NULL default ¡¨, `productSubMaterialList` char(50) NOT NULL default ¡¨, `productFunction` char(50) NOT NULL default ¡¨, `productMake` char(50) NOT NULL default ¡¨, `productMakePath` char(50) NOT NULL default ¡¨, `productPic` char(50) NOT NULL default ¡¨, `productId` char(50) NOT NULL default ¡¨, `productPrice` char(50) NOT NULL default ¡¨, `productPicPath` char(50) NOT NULL default ¡¨, PRIMARY KEY (`productId`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; ¡V ¡V ¿é¥Xªí¤¤ªº¸ê®Æ `productdetail` ¡V INSERT INTO `productdetail` (`productNum`, `productKind`, `productName`, `productMaterialList`, `productSubMaterialList`, `productFunction`, `productMake`, `productMakePath`, `productPic`, `productId`, `productPrice`, `productPicPath`) VALUES (¡¦50¡¬, ¡¥¼ö¸§µæ¡¦, ¡¥¼w¦{¥¶Âû¡¦, ¡¥dzpj.xml¡¦, ¡¥dzpj.xml¡¦, ¡¥dzpj.xml¡¦, ¡¦0¡¬, ¡¥none.swf¡¦, ¡¦0¡¬, ¡¦10014¡¬, ¡¦12.5¡¬, ¡¥none.png¡¦), (¡¦100¡¬, ¡¥¼ö¸§µæ¡¦, ¡¥®c«OÂû¤B¡¦, ¡¥gbjd.xml¡¦, ¡¥gbjd.xml¡¦, ¡¥gbjd.xml¡¦, ¡¦1¡¬, ¡¥gbjd.swf¡¦, ¡¦1¡¬, ¡¦10001¡¬, ¡¦10.5¡¬, ¡¥gbjd.png¡¦), (¡¦100¡¬, ¡¥¼ö¸§µæ¡¦, ¡¥¤õ»Lµ·¨§]¡¦, ¡¥htsdm.xml¡¦, ¡¥htsdm.xml¡¦, ¡¥htsdm.xml¡¦, ¡¦1¡¬, ¡¥htsdm.swf¡¦, ¡¦1¡¬, ¡¦10002¡¬, ¡¦12¡¬, ¡¥htsdm.png¡¦), (¡¦100¡¬, ¡¥¼ö¸§µæ¡¦, ¡¥¦y´Ô¤û¬h¡¦, ¡¥jjnl.xml¡¦, ¡¥jjnl.xml¡¦, ¡¥jjnl.xml¡¦, ¡¦1¡¬, ¡¥jjnl.swf¡¦, ¡¦1¡¬, ¡¦10003¡¬, ¡¦7.5¡¬, ¡¥jjnl.png¡¦), (¡¦100¡¬, ¡¥¼ö¸§µæ¡¦, ¡¥ªã¥½Àn´x¡¦, ¡¥jmyz.xml¡¦, ¡¥jmyz.xml¡¦, ¡¥jmyz.xml¡¦, ¡¦1¡¬, ¡¥jmyz.swf¡¦, ¡¦1¡¬, ¡¦10004¡¬, ¡¦9.5¡¬, ¡¥jmyz.png¡¦), (¡¦100¡¬, ¡¥¼ö¸§µæ¡¦, ¡¥ª´»¦^Áç¦×¡¦, ¡¥mxhgr.xml¡¦, ¡¥mxhgr.xml¡¦, ¡¥mxhgr.xml¡¦, ¡¦1¡¬, ¡¥mxhgr.swf¡¦, ¡¦1¡¬, ¡¦10005¡¬, ¡¦10¡¬, ¡¥mxhgr.png¡¦), (¡¦100¡¬, ¡¥¼ö¸§µæ¡¦, ¡¥Äz¦Ì¿N½æ¡¦, ¡¥nmsm.xml¡¦, ¡¥nmsm.xml¡¦, ¡¥nmsm.xml¡¦, ¡¦1¡¬, ¡¥nmsm.swf¡¦, ¡¦1¡¬, ¡¦10006¡¬, ¡¦20.8¡¬, ¡¥nmsm.png¡¦), (¡¦100¡¬, ¡¥¼ö®üÂA¡¦, ¡¥¤ô´¹½¼¤¯¡¦, ¡¥sjxq.xml¡¦, ¡¥sjxq.xml¡¦, ¡¥sjxq.xml¡¦, ¡¦1¡¬, ¡¥sjxq.swf¡¦, ¡¦1¡¬, ¡¦10007¡¬, ¡¦30.9¡¬, ¡¥sjxq.png¡¦), (¡¦100¡¬, ¡¥¼ö´öÃþ¡¦, ¡¥§º·A³½Ã¼¡¦, ¡¥ssyg.xml¡¦, ¡¥ssyg.xml¡¦, ¡¥ssyg.xml¡¦, ¡¦1¡¬, ¡¥ssyg.swf¡¦, ¡¦1¡¬, ¡¦10008¡¬, ¡¦25¡¬, ¡¥ssyg.png¡¦), (¡¦100¡¬, ¡¥¼ö¸§µæ¡¦, ¡¥¦èÄõªá¤û¬h¡¦, ¡¥xlhnl.xml¡¦, ¡¥xlhnl.xml¡¦, ¡¥xlhnl.xml¡¦, ¡¦1¡¬, ¡¥xlhnl.swf¡¦, ¡¦1¡¬, ¡¦10009¡¬, ¡¦22.5¡¬, ¡¥xlhnl.png¡¦), (¡¦100¡¬, ¡¥¼ö´öÃþ¡¦, ¡¥»Û£¤lÂûÞs¡¦, ¡¥xgzjb.xml¡¦, ¡¥xgzjb.xml¡¦, ¡¥xgzjb.xml¡¦, ¡¦1¡¬, ¡¥xgzjb.swf¡¦, ¡¦1¡¬, ¡¦10010¡¬, ¡¦20¡¬, ¡¥xgzjb.png¡¦), (¡¦100¡¬, ¡¥¼ö´öÃþ¡¦, ¡¥¬v½µ¤û¦×Þs¡¦, ¡¥ycnrb.xml¡¦, ¡¥ycnrb.xml¡¦, ¡¥ycnrb.xml¡¦, ¡¦1¡¬, ¡¥ycnrb.swf¡¦, ¡¦1¡¬, ¡¦10011¡¬, ¡¦12.5¡¬, ¡¥ycnrb.png¡¦), (¡¦100¡¬, ¡¥¼ö´öÃþ¡¦, ¡¥³½»X¤lÞs¡¦, ¡¥yxqzb.xml¡¦, ¡¥yxqzb.xml¡¦, ¡¥yxqzb.xml¡¦, ¡¦1¡¬, ¡¥yxqzb.swf¡¦, ¡¦1¡¬, ¡¦10012¡¬, ¡¦11¡¬, ¡¥yxqzb.png¡¦), (¡¦100¡¬, ¡¥¼ö®üÂA¡¦, ¡¥ÀpÀm¥Ê²y¡¦, ¡¥yygq.xml¡¦, ¡¥yygq.xml¡¦, ¡¥yygq.xml¡¦, ¡¦1¡¬, ¡¥yygq.swf¡¦, ¡¦1¡¬, ¡¦10013¡¬, ¡¦9.5¡¬, ¡¥yygq.png¡¦); ¡V ¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡V ¡V ¡V ªíªºµ²ºc `promotion` ¡V CREATE TABLE IF NOT EXISTS `promotion` ( `productName` varchar(20) NOT NULL, `promotionDate` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ¡V ¡V ¿é¥Xªí¤¤ªº¸ê®Æ `promotion` ¡V INSERT INTO `promotion` (`promotionDate`, `productName`, `promotionDate`) VALUES (1001, ¡¥¼w¦{¥¶Âû¡¦, 1), (1002, ¡¥®c«OÂû¤B¡¦, 2), (1003, ¡¥¤õ»Lµ·¨§]¡¦, 3), (1004, ¡¥¦y´Ô¤û¬h¡¦, 4), (1005, ¡¥ªã¥½Àn´x¡¦, 5), (1006, ¡¥ª´»¦^Áç¦×¡¦, 6), (1007, ¡¥Äz¦Ì¿N½æ¡¦, 7), (1008, ¡¥¤ô´¹½¼¤¯¡¦, 1), (1009, ¡¥§º·A³½Ã¼¡¦, 4), (1010, ¡¥¦èÄõªá¤û¬h¡¦, 4), (1011, ¡¥»Û£¤lÂûÞs¡¦, 4), (1012, ¡¥¬v½µ¤û¦×Þs¡¦, 4), (1013, ¡¥³½»X¤lÞs¡¦, 4), (1014, ¡¥ÀpÀm¥Ê²y¡¦, 4); ¡V ¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡V ¡V ¡V ªíªºµ²ºc `seatorder` ¡V CREATE TABLE IF NOT EXISTS `seatorder` ( `id` char(50) NOT NULL default ¡¨, `fReserve` datetime default ¡¦0000-00-00 00:00:00¡¬, `tReserve` datetime default ¡¦0000-00-00 00:00:00¡¬, `reserved` char(50) NOT NULL default ¡¨, FULLTEXT KEY `id` (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; ¡V ¡V ¿é¥Xªí¤¤ªº¸ê®Æ `seatorder` ¡V INSERT INTO `seatorder` (`id`, `fReserve`, `tReserve`, `reserved`) VALUES (¡¥seat_B03¡¬, ¡¦2003-10-22 15:30:00¡¬, ¡¦2003-10-22 16:30:00¡¬, ¡¦1¡¬), (¡¥seat_A02¡¬, ¡¦2003-10-22 15:30:00¡¬, ¡¦2003-10-22 16:30:00¡¬, ¡¦1¡¬), (¡¥seat_A10¡¬, ¡¦2003-10-22 15:30:00¡¬, ¡¦2003-10-22 15:30:00¡¬, ¡¦1¡¬), (¡¥seat_B05¡¬, ¡¦2003-10-22 03:10:00¡¬, ¡¦2003-10-22 03:10:00¡¬, ¡¦1¡¬), (¡¥seat_B04¡¬, ¡¦2003-10-22 03:10:00¡¬, ¡¦2003-10-22 03:10:00¡¬, ¡¦1¡¬), (¡¥seat_C01¡¬, ¡¦2003-10-22 03:10:00¡¬, ¡¦2003-10-22 03:10:00¡¬, ¡¦1¡¬), (¡¥seat_A01¡¬, ¡¦2003-10-22 15:30:00¡¬, ¡¦2003-10-22 16:30:00¡¬, ¡¦1¡¬), (¡¥seat_A03¡¬, ¡¦2003-10-22 15:30:00¡¬, ¡¦2003-10-22 16:30:00¡¬, ¡¦1¡¬), (¡¥seat_A04¡¬, ¡¦2003-10-22 15:30:00¡¬, ¡¦2003-10-22 16:30:00¡¬, ¡¦1¡¬), (¡¥seat_A05¡¬, ¡¦2003-10-22 15:30:00¡¬, ¡¦2003-10-22 16:30:00¡¬, ¡¦1¡¬), (¡¥seat_A06¡¬, ¡¦2003-10-22 15:30:00¡¬, ¡¦2003-10-22 16:30:00¡¬, ¡¦1¡¬), (¡¥seat_A07¡¬, ¡¦2003-10-22 15:30:00¡¬, ¡¦2003-10-22 16:30:00¡¬, ¡¦1¡¬), (¡¥seat_A08¡¬, ¡¦2003-10-22 15:30:00¡¬, ¡¦2003-10-22 16:30:00¡¬, ¡¦1¡¬), (¡¥seat_A09¡¬, ¡¦2003-10-22 15:30:00¡¬, ¡¦2003-10-22 16:30:00¡¬, ¡¦1¡¬), (¡¥seat_A12¡¬, ¡¦2003-10-22 15:30:00¡¬, ¡¦2003-10-22 16:30:00¡¬, ¡¦1¡¬), (¡¥seat_A13¡¬, ¡¦2003-10-22 15:30:00¡¬, ¡¦2003-10-22 16:30:00¡¬, ¡¦1¡¬), (¡¥seat_A14¡¬, ¡¦2003-10-22 15:30:00¡¬, ¡¦2003-10-22 16:30:00¡¬, ¡¦1¡¬), (¡¥seat_A15¡¬, ¡¦2003-10-22 15:30:00¡¬, ¡¦2003-10-22 16:30:00¡¬, ¡¦1¡¬), (¡¥seat_A16¡¬, ¡¦2003-10-22 15:30:00¡¬, ¡¦2003-10-22 16:30:00¡¬, ¡¦1¡¬), (¡¥seat_A17¡¬, ¡¦2003-10-22 15:30:00¡¬, ¡¦2003-10-22 16:30:00¡¬, ¡¦1¡¬), (¡¥seat_A18¡¬, ¡¦2003-10-22 15:30:00¡¬, ¡¦2003-10-22 16:30:00¡¬, ¡¦1¡¬), (¡¥seat_A19¡¬, ¡¦2003-10-22 15:30:00¡¬, ¡¦2003-10-22 16:30:00¡¬, ¡¦1¡¬), (¡¥seat_A20¡¬, ¡¦2003-10-22 15:30:00¡¬, ¡¦2003-10-22 16:30:00¡¬, ¡¦1¡¬), (¡¥seat_A21¡¬, ¡¦2003-10-22 15:30:00¡¬, ¡¦2003-10-22 16:30:00¡¬, ¡¦1¡¬), (¡¥seat_A22¡¬, ¡¦2003-10-22 15:30:00¡¬, ¡¦2003-10-22 16:30:00¡¬, ¡¦1¡¬), (¡¥seat_A23¡¬, ¡¦2003-10-22 15:30:00¡¬, ¡¦2003-10-22 16:30:00¡¬, ¡¦1¡¬), (¡¥seat_A25¡¬, ¡¦2003-10-22 15:30:00¡¬, ¡¦2003-10-22 16:30:00¡¬, ¡¦1¡¬), (¡¥seat_A26¡¬, ¡¦2003-10-22 15:30:00¡¬, ¡¦2003-10-22 16:30:00¡¬, ¡¦1¡¬), (¡¥seat_A27¡¬, ¡¦2003-10-22 15:30:00¡¬, ¡¦2003-10-22 16:30:00¡¬, ¡¦1¡¬), (¡¥seat_C01¡¬, ¡¦2003-10-22 15:30:00¡¬, ¡¦2003-10-22 16:30:00¡¬, ¡¦1¡¬), (¡¥seat_C02¡¬, ¡¦2003-10-22 15:30:00¡¬, ¡¦2003-10-22 16:30:00¡¬, ¡¦1¡¬), (¡¥seat_C03¡¬, ¡¦2003-10-22 15:30:00¡¬, ¡¦2003-10-22 16:30:00¡¬, ¡¦1¡¬), (¡¥seat_C04¡¬, ¡¦2003-10-22 15:30:00¡¬, ¡¦2003-10-22 16:30:00¡¬, ¡¦1¡¬), (¡¥seat_B01¡¬, ¡¦2003-10-22 15:30:00¡¬, ¡¦2003-10-22 16:30:00¡¬, ¡¦1¡¬), (¡¥seat_B03¡¬, ¡¦2003-10-22 15:30:00¡¬, ¡¦2003-10-22 16:30:00¡¬, ¡¦1¡¬), (¡¥seat_B04¡¬, ¡¦2003-10-22 15:30:00¡¬, ¡¦2003-10-22 16:30:00¡¬, ¡¦1¡¬), (¡¥seat_B05¡¬, ¡¦2003-10-22 15:30:00¡¬, ¡¦2003-10-22 16:30:00¡¬, ¡¦1¡¬); ¡V ¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡X¡V ¡V ¡V ªíªºµ²ºc `userlist` ¡V CREATE TABLE IF NOT EXISTS `userlist` ( `userName` char(50) NOT NULL default ¡¨, `userSex` char(50) NOT NULL default ¡¨, `userBirth` char(50) NOT NULL default ¡¨, `userEMail` char(50) NOT NULL, `userTel` char(50) NOT NULL default ¡¨, `userProvince` char(50) NOT NULL default ¡¨, `userZIP` char(50) NOT NULL default ¡¨, `userAdd` char(50) NOT NULL default ¡¨, `userID` char(50) NOT NULL default ¡¨, `userPass` char(50) NOT NULL default ¡¨, `roles` char(50) NOT NULL default ¡¨, PRIMARY KEY (`userID`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; ¡V ¡V ¿é¥Xªí¤¤ªº¸ê®Æ `userlist` ¡V INSERT INTO `userlist` (`userName`, `userSex`, `userBirth`, `userEMail`, `userTel`, `userProvince`, `userZIP`, `userAdd`, `userID`, `userPass`, `roles`) VALUES (¡¥ª÷¤£´«¡¦, ¡¥¨k¡¦, ¡¦1987¦~10¤ë1¤é¡¦, ¡¥buhuan@hotmail.com¡¦, ¡¦010-55555555¡¬, ¡¨, ¡¨, ¡¥¥_¨Ê¥«ªF«°°Ïe¸¹¡¦, ¡¥ddd¡¦, ¡¥ddd¡¦, ¡¥admin¡¦), (¡¥ª÷¤j¤ú¡¦, ¡¥¨k¡¦, ¡¦1976¦~10¤ë1¤é¡¦, ¡¥daya-jin@hotmail.com¡¦, ¡¦010-88888888¡¬, ¡¨, ¡¨, ¡¥¥_¨Ê¥«ªF«°°Ïh¸¹¡¦, ¡¥daya-jin@hotmail.com¡¦, ¡¥daya-jin¡¦, ¡¥admin¡¦), (¡¥J·R¦Y¡¦, ¡¥¤k¡¦, ¡¦1998¦~10¤ë1¤é¡¦, ¡¥hu-ac@hotmail.com¡¦, ¡¦010-44444444¡¬, ¡¨, ¡¨, ¡¥¥_¨Ê¥«ªF«°°Ïd¸¹¡¦, ¡¥hu-ac@hotmail.com¡¦, ¡¥hu-ac¡¦, ¡¥admin¡¦), (¡¥§õ°s°¡¦, ¡¥¨k¡¦, ¡¦1978¦~10¤ë1¤é¡¦, ¡¥li-jiugui@hotmail.com¡¦, ¡¦010-33333333¡¬, ¡¨, ¡¨, ¡¥¥_¨Ê¥«ªF«°°Ïc¸¹¡¦, ¡¥li-jiugui@hotmail.com¡¦, ¡¥li-jiugui¡¦, ¡¥admin¡¦), (¡¥¼B¤Ñ¤Ñ¡¦, ¡¥¤k¡¦, ¡¦1979¦~10¤ë1¤é¡¦, ¡¥liu-tian@hotmail.com¡¦, ¡¦010-22222222¡¬, ¡¨, ¡¨, ¡¥¥_¨Ê¥«ªF«°°Ïb¸¹¡¦, ¡¥liu-tian@hotmail.com¡¦, ¡¥liu-tian¡¦, ¡¥admin¡¦), (¡¥ªZ§¬§¬¡¦, ¡¥¤k¡¦, ¡¦1980¦~10¤ë1¤é¡¦, ¡¥niuniu@hotmail.com¡¦, ¡¦010-77777777¡¬, ¡¨, ¡¨, ¡¥¥_¨Ê¥«ªF«°°Ïg¸¹¡¦, ¡¥ccc¡¦, ¡¥ccc¡¦, ¡¥user¡¦), (¡¥¥Ð®{ÄP¡¦, ¡¥¨k¡¦, ¡¦1967¦~10¤ë1¤é¡¦, ¡¥pengpeng@hotmail.com¡¦, ¡¦010-66666666¡¬, ¡¨, ¡¨, ¡¥¥_¨Ê¥«ªF«°°Ïf¸¹¡¦, ¡¥aaa¡¦, ¡¥aaa¡¦, ¡¥user¡¦), (¡¥±i¤j¤O¡¦, ¡¥¨k¡¦, ¡¦1968¦~10¤ë1¤é¡¦, ¡¥zhang-dali@hotmail.com¡¦, ¡¦010-11111111¡¬, ¡¨, ¡¨, ¡¥¥_¨Ê¥«ªF«°°Ïa¸¹¡¦, ¡¥zhang-dali@hotmail.com¡¦, ¡¥zhang-dali¡¦, ¡¥user¡¦), (¡¥kkk¡¦, ¡¨, ¡¨, ¡¥kkk@sohu.com¡¦, ¡¨, ¡¨, ¡¦111111¡¬, ¡¨, ¡¥kkk¡¦, ¡¥kkk¡¦, ¡¥user¡¦);
¥»½g¤å³¹µoªí©ó2011-02-19 00:42
|