当前位置:网站首页>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
边栏推荐
- JVM的类加载过程
- Distinction between pointer array and array pointer
- Possible root causes include a too low setting for -Xss and illegal cyclic inheritance dependencies
- Executor、ExecutorService、Executors、ThreadPoolExecutor、Future、Runnable、Callable
- An example of using JNI to directly access surface data
- The textarea cursor cannot be controlled by the keyboard due to antd dropdown + modal + textarea
- Comment créer un pass BEP - 20 sur la chaîne BNB
- 深度学习——特征工程小总结
- How to use go code to compile Pb generated by proto file with protoc Compiler Go file
- IIS data conversion problem: 16bit to 24bit
猜你喜欢
[报告] Microsoft :Application of deep learning methods in speech enhancement
ESP8266-入门第一篇
Kubernetes entry to mastery - bare metal loadbalance 80 443 port exposure precautions
No, some people can't do the National Day avatar applet (you can open the traffic master and earn pocket money)
深度分析数据恢复原理——那些数据可以恢复那些不可以数据恢复软件
Virtual machine performance monitoring and fault handling tools
Class loading mechanism
PHP reference manual string (7.2000 words)
Kubernetes入门到精通-裸机LoadBalence 80 443 端口暴露注意事项
Audio signal processing and coding - 2.5.3 the discrete cosine transform
随机推荐
山大网安靶场实验平台项目—个人记录(四)
Codeworks round 783 (Div. 2) d problem solution
MySQL数据库 - 数据库和表的基本操作(二)
Virtual machine performance monitoring and fault handling tools
【数值预测案例】(3) LSTM 时间序列电量预测,附Tensorflow完整代码
Some speculation about the decline of adults' language learning ability
Speex维纳滤波与超几何分布的改写
Executor、ExecutorService、Executors、ThreadPoolExecutor、Future、Runnable、Callable
Reflection on the performance of some OpenGL operations in the past
Strange problems in FrameLayout view hierarchy
Zero cost, zero foundation, build profitable film and television applet
C6748 软件仿真和硬件测试 ---附详细FFT硬件测量时间
Openharmony open source developer growth plan, looking for new open source forces that change the world!
如何在BNB鏈上創建BEP-20通證
对普通bean进行Autowired字段注入
C6748 software simulation and hardware test - with detailed FFT hardware measurement time
What is a message queue
JVM的类加载过程
MFCC: Mel频率倒谱系数计算感知频率和实际频率转换
[transfer] summary of new features of js-es6 (one picture)