You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
133 lines
4.9 KiB
133 lines
4.9 KiB
CREATE DATABASE IF NOT EXISTS `真香图书管理系统` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */;
|
|
USE `真香图书管理系统`;
|
|
-- MySQL dump 10.13 Distrib 8.0.13, for Win64 (x86_64)
|
|
--
|
|
-- Host: localhost Database: 真香图书管理系统
|
|
-- ------------------------------------------------------
|
|
-- Server version 8.0.13
|
|
|
|
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
|
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
|
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
|
SET NAMES utf8 ;
|
|
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
|
|
/*!40103 SET TIME_ZONE='+00:00' */;
|
|
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
|
|
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
|
|
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
|
|
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
|
|
|
|
--
|
|
-- Table structure for table `book`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `book`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
SET character_set_client = utf8mb4 ;
|
|
CREATE TABLE `book` (
|
|
`book_id` int(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,
|
|
`book_image` varchar(45) DEFAULT NULL,
|
|
PRIMARY KEY (`book_id`,`book_name`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Dumping data for table `book`
|
|
--
|
|
|
|
LOCK TABLES `book` WRITE;
|
|
/*!40000 ALTER TABLE `book` DISABLE KEYS */;
|
|
INSERT INTO `book` VALUES (1,'中国史学入门','顾颉刚',10,'历史人文类',NULL),(2,'明朝那些事儿','石悦',10,'历史人文类',NULL),(3,'袁氏当国','唐德刚',10,'历史人文类',NULL),(4,'天朝的崩溃','茅海建',10,'历史人文类',NULL),(5,'东晋门阀政治','田余庆',10,'历史人文类',NULL),(6,'通俗天文学','(美)西蒙·纽康 ',10,'自然科学类',NULL),(7,'自私的基因','[英]理查德·道金斯',10,'自然科学类',NULL),(8,'发现之旅','托尼赖斯',10,'自然科学类',NULL),(9,'宇宙之书','约翰.D.巴罗',10,'自然科学类',NULL);
|
|
/*!40000 ALTER TABLE `book` ENABLE KEYS */;
|
|
UNLOCK TABLES;
|
|
|
|
--
|
|
-- Table structure for table `borrowrecord`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `borrowrecord`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
SET character_set_client = utf8mb4 ;
|
|
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=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Dumping data for table `borrowrecord`
|
|
--
|
|
|
|
LOCK TABLES `borrowrecord` WRITE;
|
|
/*!40000 ALTER TABLE `borrowrecord` DISABLE KEYS */;
|
|
/*!40000 ALTER TABLE `borrowrecord` ENABLE KEYS */;
|
|
UNLOCK TABLES;
|
|
|
|
--
|
|
-- Table structure for table `manager`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `manager`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
SET character_set_client = utf8mb4 ;
|
|
CREATE TABLE `manager` (
|
|
`m_id` int(20) NOT NULL,
|
|
`m_password` varchar(20) NOT NULL,
|
|
PRIMARY KEY (`m_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Dumping data for table `manager`
|
|
--
|
|
|
|
LOCK TABLES `manager` WRITE;
|
|
/*!40000 ALTER TABLE `manager` DISABLE KEYS */;
|
|
INSERT INTO `manager` VALUES (1,'000000'),(2,'000000');
|
|
/*!40000 ALTER TABLE `manager` ENABLE KEYS */;
|
|
UNLOCK TABLES;
|
|
|
|
--
|
|
-- Table structure for table `student`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `student`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
SET character_set_client = utf8mb4 ;
|
|
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=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Dumping data for table `student`
|
|
--
|
|
|
|
LOCK TABLES `student` WRITE;
|
|
/*!40000 ALTER TABLE `student` DISABLE KEYS */;
|
|
INSERT INTO `student` VALUES (20160801,'123456','xzy'),(20160802,'123456','zxy'),(20160803,'123456','myj'),(20160804,'123456','zjh');
|
|
/*!40000 ALTER TABLE `student` ENABLE KEYS */;
|
|
UNLOCK TABLES;
|
|
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
|
|
|
|
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
|
|
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
|
|
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
|
|
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
|
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
|
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
|
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
|
|
|
-- Dump completed on 2019-01-11 10:30:38
|