当前位置:网站首页>Design of library management database system
Design of library management database system
2022-04-23 19:42:00 【X heart】
The first 1 Turn off : Database table design - The book list
# Please add the implementation code here
########## Begin ##########
# stay library_db Create... In the library books surface
use library_db;
create table books(
bookId int(11) primary key not null,
bookName varchar(255) not null,
publicationDate datetime not null,
publisher varchar(255) not null,
bookrackId int(11) not null,
roomId int(11) not null
);
########## End ##########
The first 2 Turn off : Database table design - Reader table
# Please add the implementation code here
########## Begin ##########
# stay library_db Create... In the library reader surface
use library_db;
create table reader(
borrowBookId int(11) primary key,
name varchar(20) not null,
age int(11) not null,
sex varchar(2) not null,
address varchar(255) not null
);
########## End ##########
The first 3 Turn off : Database table design - Association table
# Please add the implementation code here
########## Begin ##########
# stay library_db Create... In the library bookrack surface
use library_db;
create table bookrack(
bookrackId int(11) primary key,
roomId int(11) not null,
constraint FK_bookrack_bookrackId foreign key(bookrackId) references books(bookrackId),
constraint FK_bookrack_roomId foreign key(roomId) references books(roomId)
);
# stay library_db Create... In the library borrow surface
create table borrow(
borrowBookId int(11) primary key,
bookId int(11) not null,
borrowDate datetime not null,
returnDate datetime not null,
constraint FK_borrow_borrowBookId foreign key(borrowBookId) references reader(borrowBookId),
constraint FK_borrow_bookId foreign key(bookId) references books(bookId)
);
########## End ##########
版权声明
本文为[X heart]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231927030692.html
边栏推荐
- Main differences between go and PHP
- Kubernetes entry to mastery - bare metal loadbalance 80 443 port exposure precautions
- Kibana reports an error server is not ready yet. Possible causes
- [H264] hevc H264 parsing and frame rate setting of the old version of libvlc
- MFCC: Mel频率倒谱系数计算感知频率和实际频率转换
- Kubernetes入门到精通-在 Kubernetes 上安装 OpenELB
- SRS 的部署
- Kubernetes getting started to proficient - install openelb on kubernetes
- 视频理解-Video Understanding
- 数据库查询 - 选课系统
猜你喜欢
山大网安靶场实验平台项目-个人记录(五)
Distinction between pointer array and array pointer
First experience of using fluent canvas
An algorithm problem was encountered during the interview_ Find the mirrored word pairs in the dictionary
C6748 软件仿真和硬件测试 ---附详细FFT硬件测量时间
Grafana 分享带可变参数的链接
FFT物理意义: 1024点FFT就是1024个实数,实际进入fft的输入是1024个复数(虚部为0),输出也是1024个复数,有效的数据是前512个复数
The textarea cursor cannot be controlled by the keyboard due to antd dropdown + modal + textarea
Building googlenet neural network based on pytorch for flower recognition
@MapperScan与@Mapper
随机推荐
如何在BNB链上创建BEP-20通证
No, some people can't do the National Day avatar applet (you can open the traffic master and earn pocket money)
Distinction between pointer array and array pointer
@MapperScan与@Mapper
MySQL practical skills
Speculation on the way to realize the smooth drag preview of video editing software
点云数据集常用处理
【webrtc】Add x264 encoder for CEF/Chromium
Redis core technology and practice 1 - start with building a simple key value database simplekv
Encyclopedia of professional terms and abbreviations in communication engineering
filebeat、logstash配置安装
Kubernetes getting started to proficient - install openelb on kubernetes
goroutine
考试系统进入试卷优化思路
The usage of slice and the difference between slice and array
MySQL syntax collation (2)
Go recursively loops through folders
uIP1. 0 actively sent problem understanding
php参考手册String(7.2千字)
Audio editing generation software