diff --git "a/19\345\275\255\345\213\207\346\226\214/\347\254\224\350\256\260/\345\233\276\344\271\246\347\256\241\347\220\206\347\263\273\347\273\237.md" "b/19\345\275\255\345\213\207\346\226\214/\347\254\224\350\256\260/\345\233\276\344\271\246\347\256\241\347\220\206\347\263\273\347\273\237.md" new file mode 100644 index 0000000000000000000000000000000000000000..80b330c34337f670f09880565d373628fd3dfadc --- /dev/null +++ "b/19\345\275\255\345\213\207\346\226\214/\347\254\224\350\256\260/\345\233\276\344\271\246\347\256\241\347\220\206\347\263\273\347\273\237.md" @@ -0,0 +1,67 @@ +![8750562da5843903a5aeabd6c0b120d](https://s2.loli.net/2023/09/11/PlZvLfmqhsAMuyw.png) + +```MYSQL +*==============================================================*/ +/* DBMS name: MySQL 5.0 */ +/* Created on: 2023/9/11 20:20:24 */ +/*==============================================================*/ +CREATE DATABASE bookes charset utf8; +use bookes; + +drop table if exists book; + +drop table if exists guanli; + +drop table if exists jie; + +drop table if exists librarian; + +drop table if exists library; + +drop table if exists reader; + +drop table if exists system; + +/*==============================================================*/ +/* Table: book */ +/*==============================================================*/ +create table book +( + bo_id char(10) not null, + sys_id int not null, + bo_name char(10) not null, + bo_author char(10) not null, + primary key (bo_id) +); + +/*==============================================================*/ +/* Table: guanli */ +/*==============================================================*/ +create table guanli +( + sys_id int not null, + rar_id int not null, + primary key (sys_id, rar_id) +); + +/*==============================================================*/ +/* Table: jie */ +/*==============================================================*/ +create table jie +( + bo_id char(10) not null, + re_id int not null, + rar_id int, + primary key (bo_id, re_id) +); + +/*==============================================================*/ +/* Table: librarian */ +/*==============================================================*/ +create table librarian +( + rar_id int not null auto_increment, + lib_id int not null, + rar_name varch +``` +