Created
February 10, 2020 23:52
-
-
Save JialunC/b61e0825e4f0deed0f1d47ed5d9fd88e to your computer and use it in GitHub Desktop.
ok
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE DATABASE IF NOT EXISTS `LibraryDB` /*!40100 DEFAULT CHARACTER SET latin1 */; | |
USE `LibraryDB`; | |
-- MySQL dump 10.13 Distrib 8.0.17, for macos10.14 (x86_64) | |
-- | |
-- Host: localhost Database: LibraryDB | |
-- ------------------------------------------------------ | |
-- Server version 5.7.17 | |
/*!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 */; | |
/*!50503 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 */; | |
/*!50503 SET character_set_client = utf8mb4 */; | |
CREATE TABLE `BOOK` ( | |
`Book_id` int(11) DEFAULT NULL, | |
`Title` varchar(60) DEFAULT NULL, | |
`Publisher_name` varchar(60) DEFAULT NULL | |
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | |
/*!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 (3,'I Contain Multitudes: The Microbes Within Us and a Grander V','HarperCollins'),(2,'Should We Eat Meat?: Evolution and Consequences of Modern Ca','John Wiley & Sons'),(5,'The Most Powerful Idea in the World: A Story of Steam, Indus','Jonathan Cape'),(4,'Behind the Beautiful Forevers: Life, Death, and Hope in a Mu','Random House'),(6,'Sustainable Energy - Without the Hot Air','UIT'),(1,'Life 3.0: Being Human in the Age of Artificial Intelligence','Vintage Books'); | |
/*!40000 ALTER TABLE `BOOK` ENABLE KEYS */; | |
UNLOCK TABLES; | |
-- | |
-- Table structure for table `BORROWER` | |
-- | |
DROP TABLE IF EXISTS `BORROWER`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!50503 SET character_set_client = utf8mb4 */; | |
CREATE TABLE `BORROWER` ( | |
`Card_no` int(11) DEFAULT NULL, | |
`Name` varchar(25) DEFAULT NULL, | |
`Address` varchar(255) DEFAULT NULL, | |
`Phone` varchar(45) DEFAULT NULL | |
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Dumping data for table `BORROWER` | |
-- | |
LOCK TABLES `BORROWER` WRITE; | |
/*!40000 ALTER TABLE `BORROWER` DISABLE KEYS */; | |
INSERT INTO `BORROWER` VALUES (1667,'Carmen J Clyburn','2604 Victoria Park Ave',NULL),(5007,'Ali Ahmadi','3853 Broadmoor Blvd',NULL),(7032,'Sythoun Sun','3783 Front Street',NULL),(8163,'Jess Huynh','3094 Brew Creek Road',NULL),(9781,'Ethel V. Stainbrook','1074 Glover Road',NULL); | |
/*!40000 ALTER TABLE `BORROWER` ENABLE KEYS */; | |
UNLOCK TABLES; | |
-- | |
-- Table structure for table `LIBRARY_BRANCH` | |
-- | |
DROP TABLE IF EXISTS `LIBRARY_BRANCH`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!50503 SET character_set_client = utf8mb4 */; | |
CREATE TABLE `LIBRARY_BRANCH` ( | |
`Book_id` int(11) DEFAULT NULL, | |
`Due_date` date DEFAULT NULL, | |
`Date_out` date DEFAULT NULL, | |
`Branch_id` int(11) DEFAULT NULL, | |
`Card_no` varchar(25) DEFAULT NULL | |
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Dumping data for table `LIBRARY_BRANCH` | |
-- | |
LOCK TABLES `LIBRARY_BRANCH` WRITE; | |
/*!40000 ALTER TABLE `LIBRARY_BRANCH` DISABLE KEYS */; | |
INSERT INTO `LIBRARY_BRANCH` VALUES (1,'2020-01-27','2019-11-27',234,'1667'),(1,'2020-02-20','2019-11-20',234,'1667'),(2,'2020-03-17','2019-10-01',156,'5007'),(3,'2020-03-17','2019-11-02',156,'5007'),(4,'2020-02-10','2020-01-01',156,'5007'); | |
/*!40000 ALTER TABLE `LIBRARY_BRANCH` ENABLE KEYS */; | |
UNLOCK TABLES; | |
-- | |
-- Table structure for table `PUBLISHER` | |
-- | |
DROP TABLE IF EXISTS `PUBLISHER`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!50503 SET character_set_client = utf8mb4 */; | |
CREATE TABLE `PUBLISHER` ( | |
`Name` varchar(60) DEFAULT NULL, | |
`Address` varchar(60) DEFAULT NULL, | |
`Phone` int(11) DEFAULT NULL | |
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Dumping data for table `PUBLISHER` | |
-- | |
LOCK TABLES `PUBLISHER` WRITE; | |
/*!40000 ALTER TABLE `PUBLISHER` DISABLE KEYS */; | |
INSERT INTO `PUBLISHER` VALUES ('HarperCollins','New York, New York, United States',0),('John Wiley & Sons','Hoboken, New Jersey, United States',0),('Jonathan Cape','London, United Kingdom',0),('Vintage Books','New York, New York, United States',0); | |
/*!40000 ALTER TABLE `PUBLISHER` 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 2020-01-16 18:58:29 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment