当前位置:网站首页>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
边栏推荐
- 仓库管理数据库系统设计
- MySQL syntax collation
- Translation of audio signal processing and coding: Preface
- Core concepts of rest
- RuntimeError: Providing a bool or integral fill value without setting the optional `dtype` or `out`
- Common processing of point cloud dataset
- 指针数组与数组指针的区分
- HTTP cache - HTTP authoritative guide Chapter VII
- Shanda Wangan shooting range experimental platform project - personal record (V)
- 【文本分类案例】(4) RNN、LSTM 电影评价倾向分类,附TensorFlow完整代码
猜你喜欢
An idea of rendering pipeline based on FBO
Scrum Patterns之理解各种团队模式
Using oes texture + glsurfaceview + JNI to realize player picture processing based on OpenGL es
Application of DCT transform
FFT物理意义: 1024点FFT就是1024个实数,实际进入fft的输入是1024个复数(虚部为0),输出也是1024个复数,有效的数据是前512个复数
Garbage collector and memory allocation strategy
山东大学软件学院项目实训-创新实训-网络安全靶场实验平台(五)
Kubernetes入门到精通-裸机LoadBalence 80 443 端口暴露注意事项
Reflection on the performance of some OpenGL operations in the past
Virtual machine performance monitoring and fault handling tools
随机推荐
什么是消息队列
Strange problems in FrameLayout view hierarchy
PostgreSQL
【数值预测案例】(3) LSTM 时间序列电量预测,附Tensorflow完整代码
MySQL数据库 - 数据库和表的基本操作(二)
Use test of FFT and IFFT library functions of TI DSP
仓库管理数据库系统设计
Matlab 2019 installation of deep learning toolbox model for googlenet network
MFCC: Mel频率倒谱系数计算感知频率和实际频率转换
山大网安靶场实验平台项目-个人记录(五)
深度学习——特征工程小总结
DevOps集成-Jenkins 服务的环境变量和构建工具 Tools
RuntimeError: Providing a bool or integral fill value without setting the optional `dtype` or `out`
uIP1.0 主动发送的问题理解
Executor、ExecutorService、Executors、ThreadPoolExecutor、Future、Runnable、Callable
山东大学软件学院项目实训-创新实训-网络安全靶场实验平台(六)
MySQL数据库 - 单表查询(二)
机器学习目录
Deep learning -- Summary of Feature Engineering
@MapperScan与@Mapper