当前位置:网站首页>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
边栏推荐
- RuntimeError: Providing a bool or integral fill value without setting the optional `dtype` or `out`
- 一个简单的(基于redisson的)分布式同步工具类封装
- MySQL practical skills
- How to uninstall easyton
- 深度分析数据恢复原理——那些数据可以恢复那些不可以数据恢复软件
- Physical meaning of FFT: 1024 point FFT is 1024 real numbers. The actual input to FFT is 1024 complex numbers (imaginary part is 0), and the output is also 1024 complex numbers. The effective data is
- 如何在BNB链上创建BEP-20通证
- 【webrtc】Add x264 encoder for CEF/Chromium
- OpenHarmony开源开发者成长计划,寻找改变世界的开源新生力!
- Golang timer
猜你喜欢

Using oes texture + glsurfaceview + JNI to realize player picture processing based on OpenGL es

An idea of rendering pipeline based on FBO

Kubernetes entry to mastery - bare metal loadbalance 80 443 port exposure precautions
![[transfer] summary of new features of js-es6 (one picture)](/img/45/76dba32e4fa7ed44a42e5f98ea8207.jpg)
[transfer] summary of new features of js-es6 (one picture)

antd dropdown + modal + textarea导致的textarea光标不可被键盘控制问题

MySQL syntax collation (4)

Possible root causes include a too low setting for -Xss and illegal cyclic inheritance dependencies

深度学习——特征工程小总结

First experience of using fluent canvas

Command - sudo
随机推荐
Speex维纳滤波与超几何分布的改写
NiO related Basics
ESP8266-入门第一篇
Translation of audio signal processing and coding: Preface
音频编辑生成软件
Encyclopedia of professional terms and abbreviations in communication engineering
命令-sudo
C6748 软件仿真和硬件测试 ---附详细FFT硬件测量时间
@Mapperscan and @ mapper
【webrtc】Add x264 encoder for CEF/Chromium
视频理解-Video Understanding
MFC obtains local IP (used more in network communication)
Mfcc: Mel frequency cepstrum coefficient calculation of perceived frequency and actual frequency conversion
Data analysis learning directory
图书管理数据库系统设计
filebeat、logstash配置安装
Core concepts of rest
Possible root causes include a too low setting for -Xss and illegal cyclic inheritance dependencies
Zero base to build profit taking away CPS platform official account
Lpc1768 optimization comparison of delay time and different levels