/*
Navicat MySQL Data Transfer

Source Server         : localhost
Source Server Version : 50639
Source Host           : 127.0.0.1:3306
Source Database       : zx

Target Server Type    : MYSQL
Target Server Version : 50639
File Encoding         : 65001

Date: 2019-01-14 17:31:38
*/

SET FOREIGN_KEY_CHECKS=0;

-- ----------------------------
-- Table structure for book
-- ----------------------------
DROP TABLE IF EXISTS `book`;
CREATE TABLE `book` (
  `book_id` varchar(20) NOT NULL,
  `book_name` varchar(45) NOT NULL,
  `book_author` varchar(20) NOT NULL,
  `book_num` int(5) NOT NULL,
  `book_sort` varchar(20) NOT NULL,
  PRIMARY KEY (`book_id`,`book_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of book
-- ----------------------------
INSERT INTO `book` VALUES ('1', '四书五经合集', '古代多人', '20', '文学名著类');
INSERT INTO `book` VALUES ('10', '《格列佛游记》', '佚名', '18', '文学名著类');
INSERT INTO `book` VALUES ('11', '《洛丽塔》', '佚名', '18', '文学名著类');
INSERT INTO `book` VALUES ('12', '《林徽因传》', '张清平', '16', '文学名著类');
INSERT INTO `book` VALUES ('13', '《莎士比亚十四行诗集》', '佚名', '20', '文学名著类');
INSERT INTO `book` VALUES ('14', '《陈良宇传奇》', '佚名', '21', '文学名著类');
INSERT INTO `book` VALUES ('15', '《邓小平传》', '佚名', '17', '文学名著类');
INSERT INTO `book` VALUES ('16', '《滚雪球：巴菲特和他的财富人生》', '佚名', '17', '文学名著类');
INSERT INTO `book` VALUES ('17', '《老人与海》', '佚名', '21', '文学名著类');
INSERT INTO `book` VALUES ('18', '《忏悔录》', '卢梭', '22', '文学名著类');
INSERT INTO `book` VALUES ('19', '《海岩全集》', '佚名', '24', '文学名著类');
INSERT INTO `book` VALUES ('2', '《人生》', '路遥', '21', '文学名著类');
INSERT INTO `book` VALUES ('20', '《三毛全集》', '佚名', '20', '文学名著类');
INSERT INTO `book` VALUES ('21', '《人性的光辉：林肯传》', '戴尔·卡耐基', '18', '文学名著类');
INSERT INTO `book` VALUES ('22', '《呼啸山庄》', '佚名', '21', '文学名著类');
INSERT INTO `book` VALUES ('23', '《村上春树全集》', '佚名', '20', '文学名著类');
INSERT INTO `book` VALUES ('24', '《红与黑》', '佚名', '21', '文学名著类');
INSERT INTO `book` VALUES ('25', '《孙中山全传》', '佚名', '18', '文学名著类');
INSERT INTO `book` VALUES ('26', '《本草纲目》', '李时珍', '16', '文学名著类');
INSERT INTO `book` VALUES ('27', '《一口气读完世界史》', '佚名', '17', '文学名著类');
INSERT INTO `book` VALUES ('28', '《平凡的世界》', '路遥', '25', '文学名著类');
INSERT INTO `book` VALUES ('29', '《巨星闪耀》', '郭宏军', '24', '文学名著类');
INSERT INTO `book` VALUES ('3', '《中华上下五千年》', '佚名', '19', '文学名著类');
INSERT INTO `book` VALUES ('30', '《白话山海经》', '佚名', '19', '文学名著类');
INSERT INTO `book` VALUES ('31', '《枪手的新娘》', '佚名', '24', '文学名著类');
INSERT INTO `book` VALUES ('32', '《李安传：十年一觉电影梦》', '张靓蓓', '19', '文学名著类');
INSERT INTO `book` VALUES ('33', '《一个陌生女人的来信》', '佚名', '18', '文学名著类');
INSERT INTO `book` VALUES ('34', '《北洋军阀统治时期史话》', '佚名', '24', '文学名著类');
INSERT INTO `book` VALUES ('35', '《鲁宾逊漂流记》', '佚名', '21', '文学名著类');
INSERT INTO `book` VALUES ('36', '《三毛作品集》', '三毛', '17', '文学名著类');
INSERT INTO `book` VALUES ('37', '《菊与刀》', '佚名', '25', '文学名著类');
INSERT INTO `book` VALUES ('38', '《歌舞伎町案内人》', '佚名', '21', '文学名著类');
INSERT INTO `book` VALUES ('39', '《红顶商人胡雪岩》', '佚名', '16', '文学名著类');
INSERT INTO `book` VALUES ('4', '《百年孤独》', '佚名', '17', '文学名著类');
INSERT INTO `book` VALUES ('40', '《汉武帝》', '叶绍翁', '25', '文学名著类');
INSERT INTO `book` VALUES ('41', '《灯草和尚》', '高则诚', '16', '文学名著类');
INSERT INTO `book` VALUES ('42', '《路遥全集》', '佚名', '20', '文学名著类');
INSERT INTO `book` VALUES ('43', '《古文观止+译文》', '佚名', '24', '文学名著类');
INSERT INTO `book` VALUES ('44', '《风雨独立路-李光耀传》', '李光耀', '23', '文学名著类');
INSERT INTO `book` VALUES ('45', '《余华文集》', '余华', '21', '文学名著类');
INSERT INTO `book` VALUES ('46', '《张小娴作品集》', '张小娴', '24', '文学名著类');
INSERT INTO `book` VALUES ('47', '《明亡清兴六十年》', '佚名', '25', '文学名著类');
INSERT INTO `book` VALUES ('48', '《千年一叹-余秋雨》', '佚名', '24', '文学名著类');
INSERT INTO `book` VALUES ('49', '《我的禅》', '卫慧', '19', '文学名著类');
INSERT INTO `book` VALUES ('5', '《大秦帝国》', '佚名', '23', '文学名著类');
INSERT INTO `book` VALUES ('50', '《川端康成文集》', '佚名', '19', '文学名著类');
INSERT INTO `book` VALUES ('51', '《天龙八部》', '金庸', '20', '文学名著类');
INSERT INTO `book` VALUES ('52', '《沉思录II》', '佚名', '17', '文学名著类');
INSERT INTO `book` VALUES ('53', '《雍正王朝：恨水东逝》', '佚名', '22', '文学名著类');
INSERT INTO `book` VALUES ('54', '《莎士比亚全集》', '莎士比亚', '23', '文学名著类');
INSERT INTO `book` VALUES ('55', '《中国史学入门》', '顾颉刚', '10', '人文历史类');
INSERT INTO `book` VALUES ('56', '《明朝那些事儿》', '石悦', '15', '人文历史类');
INSERT INTO `book` VALUES ('57', '《袁氏当国》', '唐德刚', '12', '人文历史类');
INSERT INTO `book` VALUES ('58', '《天朝的崩溃》', '茅海建', '5', '人文历史类');
INSERT INTO `book` VALUES ('59', '《东晋门阀政治》', '田余庆', '20', '人文历史类');
INSERT INTO `book` VALUES ('6', '《兄弟》', '余华', '21', '文学名著类');
INSERT INTO `book` VALUES ('60', '《通俗天文学》', '(美)西蒙·纽康 ', '23', '自然科学类');
INSERT INTO `book` VALUES ('61', '《自私的基因》', '[英]理查德·道金斯', '45', '自然科学类');
INSERT INTO `book` VALUES ('62', '《发现之旅》', '托尼赖斯', '20', '自然科学类');
INSERT INTO `book` VALUES ('63', '《宇宙之书》', '约翰.D.巴罗', '18', '自然科学类');
INSERT INTO `book` VALUES ('64', '《信号与系统》', 'Alan V.Oppenheim', '20', '计算机类');
INSERT INTO `book` VALUES ('65', '《第一行代码》', '郭霖', '10', '计算机类');
INSERT INTO `book` VALUES ('66', '《HTTP权威指南》', ' David Gourley', '9', '计算机类');
INSERT INTO `book` VALUES ('67', '《解TCP/IP : 第5版》', '[日]竹下隆史', '10', '计算机类');
INSERT INTO `book` VALUES ('68', '《肿瘤常见症状的中西医处理手册》', '李萍萍 ', '5', '医学类');
INSERT INTO `book` VALUES ('69', '《中国的医药》', '魏子孝&聂丽芳', '6', '医学类');
INSERT INTO `book` VALUES ('7', '《激荡30年》', '佚名', '25', '文学名著类');
INSERT INTO `book` VALUES ('70', '《中华医药学史》', '林品石', '7', '医学类');
INSERT INTO `book` VALUES ('71', '《中医熟记的100种中药》', '肖锦仁', '8', '医学类');
INSERT INTO `book` VALUES ('72', '《永续农业概论》', '莫里森', '20', '农学类');
INSERT INTO `book` VALUES ('73', '《全息自然农法实现》', '何以兴农', '18', '农学类');
INSERT INTO `book` VALUES ('74', '《作物育种学》', '席章营', '5', '农学类');
INSERT INTO `book` VALUES ('75', '《中国农学史》', '曾雄生', '20', '农学类');
INSERT INTO `book` VALUES ('8', '《沧浪之水》', '佚名', '19', '文学名著类');
INSERT INTO `book` VALUES ('9', '《席绢全集》', '席绢', '23', '文学名著类');

-- ----------------------------
-- Table structure for borrowrecord
-- ----------------------------
DROP TABLE IF EXISTS `borrowrecord`;
CREATE TABLE `borrowrecord` (
  `s_id` int(20) NOT NULL,
  `book_id` int(20) NOT NULL,
  `s_name` varchar(20) NOT NULL,
  `book_name` varchar(20) NOT NULL,
  `book_num` int(5) NOT NULL,
  PRIMARY KEY (`s_id`,`book_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of borrowrecord
-- ----------------------------

-- ----------------------------
-- Table structure for manager
-- ----------------------------
DROP TABLE IF EXISTS `manager`;
CREATE TABLE `manager` (
  `m_id` int(20) NOT NULL,
  `m_password` varchar(20) NOT NULL,
  PRIMARY KEY (`m_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of manager
-- ----------------------------
INSERT INTO `manager` VALUES ('1', '000000');
INSERT INTO `manager` VALUES ('2', '000000');

-- ----------------------------
-- Table structure for student
-- ----------------------------
DROP TABLE IF EXISTS `student`;
CREATE TABLE `student` (
  `s_id` int(20) NOT NULL,
  `s_password` varchar(20) NOT NULL,
  `s_name` varchar(20) NOT NULL,
  PRIMARY KEY (`s_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of student
-- ----------------------------
INSERT INTO `student` VALUES ('20160801', '123456', 'xzy');
INSERT INTO `student` VALUES ('20160802', '123456', 'zxy');
INSERT INTO `student` VALUES ('20160803', '123456', 'myj');
INSERT INTO `student` VALUES ('20160804', '123456', 'zjh');
