当前位置:网站首页>仓库管理数据库系统设计
仓库管理数据库系统设计
2022-04-23 19:28:00 【x 心 动】
第1关:数据库表设计 - 核心表创建
#ÇëÔÚ´ËÌí¼ÓʵÏÖ´úÂë
########## Begin ##########
#ÔÚwarehouse_db¿âÖд´½¨warehouse±í
use warehouse_db;
create table warehouse(
warehouseId int(11) primary key,
area int(11) not null,
phone int(11) not null
);
#ÔÚwarehouse_db¿âÖд´½¨component±í
create table component(
componentId int(11) primary key,
componentName varchar(20) not null,
standard varchar(255) not null,
price double(10,2) not null,
`describe` varchar(255) not null
);
#ÔÚwarehouse_db¿âÖд´½¨supplier±í
create table supplier(
supplyId int(11) primary key,
name varchar(20) not null,
address varchar(255) not null,
phone int(11) not null,
account bigint(18) not null
);
########## End ##########
第2关:数据库表设计 - 项目职员表
#请在此添加实现代码
########## Begin ##########
#在warehouse_db库中创建project表
use warehouse_db;
create table project(
projectId int(11) primary key,
projectBudget double(10,0) not null,
commenceDate datetime not null
);
#在warehouse_db库中创建employee表
create table employee(
employeeId int(11) primary key,
name varchar(20) not null,
age int(3) not null,
designation varchar(20) not null,
warehouseId int(11) not null,
leaders varchar(20) not null,
constraint FK_employee_warehouseId foreign key(warehouseId) references warehouse(warehouseId)
);
########## End ##########
第3关:数据库表设计 - 关联表
#请在此添加实现代码
########## Begin ##########
#在warehouse_db库中创建supply表
use warehouse_db;
create table supply(
supplyId int(11) primary key,
projectId int(11) not null,
componentId int(11) not null,
supplyCount int(11) not null,
constraint FK_supply_supplyId foreign key(supplyId) references supplier(supplyId),
constraint FK_supply_projectId foreign key(projectId) references project(projectId),
constraint FK_supply_componentId foreign key(componentId) references component(componentId)
);
#在warehouse_db库中创建repertory表
create table repertory(
warehouseId int(11) primary key,
componentId int(11) not null,
repertoryCount int(11) not null,
constraint FK_repertory_warehouseId foreign key(warehouseId) references warehouse(warehouseId),
constraint FK_repertory_component_componentId foreign key(componentId) references component(componentId)
);
########## End ##########
版权声明
本文为[x 心 动]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qq_45623072/article/details/124149281
边栏推荐
- I just want to leave a note for myself
- ArcMap连接 arcgis server
- The platinum library cannot search the debug process records of some projection devices
- openlayers 5.0 当地图容器大小改变时,重新加载地图
- 高效的串口循环Buffer接收处理思路及代码2
- JS calculation time difference
- Deep learning -- Summary of Feature Engineering
- Openlayers 5.0 two centering methods
- openlayers 5.0 热力图
- On the forced conversion of C language pointer
猜你喜欢

Oracle配置st_geometry

Network protocol: SCTP flow control transmission protocol
![[transfer] summary of new features of js-es6 (one picture)](/img/45/76dba32e4fa7ed44a42e5f98ea8207.jpg)
[transfer] summary of new features of js-es6 (one picture)

OpenHarmony开源开发者成长计划,寻找改变世界的开源新生力!

JVM的类加载过程

精简CUDA教程——CUDA Driver API

The platinum library cannot search the debug process records of some projection devices

MySQL syntax collation (5) -- functions, stored procedures and triggers
![[report] Microsoft: application of deep learning methods in speech enhancement](/img/29/2d2addd826359fdb0920e06ebedd29.png)
[report] Microsoft: application of deep learning methods in speech enhancement

FFT物理意义: 1024点FFT就是1024个实数,实际进入fft的输入是1024个复数(虚部为0),输出也是1024个复数,有效的数据是前512个复数
随机推荐
openlayers 5.0 加载arcgis server 切片服务
[报告] Microsoft :Application of deep learning methods in speech enhancement
Using oes texture + glsurfaceview + JNI to realize player picture processing based on OpenGL es
C1000k TCP connection upper limit test 1
Pdf reference learning notes
openlayers 5.0 两种居中方式
Codeforces Round #783 (Div. 2) D题解
Garbage collector and memory allocation strategy
How to uninstall easyton
Some ideas about time-consuming needs assessment
Kubernetes入门到精通-裸机LoadBalence 80 443 端口暴露注意事项
Zero base to build profit taking away CPS platform official account
Zero cost, zero foundation, build profitable film and television applet
Summary of several relationships of UML class diagram
@MapperScan与@Mapper
Lottery applet, mother no longer have to worry about who does the dishes (assign tasks), so easy
The most detailed network counting experiment in history (2) -- rip experiment of layer 3 switch
Matlab 2019 installation of deep learning toolbox model for googlenet network
JVM的类加载过程
C学习完结