当前位置:网站首页>Design of warehouse management database system
Design of warehouse management database system
2022-04-23 19:42:00 【X heart】
The first 1 Turn off : Database table design - Core table creation
#ÇëÔÚ´ËÌí¼ÓʵÏÖ´úÂë
########## 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 ##########
The first 2 Turn off : Database table design - Project staff table
# Please add the implementation code here
########## Begin ##########
# stay warehouse_db Create... In the library project surface
use warehouse_db;
create table project(
projectId int(11) primary key,
projectBudget double(10,0) not null,
commenceDate datetime not null
);
# stay warehouse_db Create... In the library employee surface
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 ##########
The first 3 Turn off : Database table design - Association table
# Please add the implementation code here
########## Begin ##########
# stay warehouse_db Create... In the library supply surface
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)
);
# stay warehouse_db Create... In the library repertory surface
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 heart]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231927030641.html
边栏推荐
- PHP reference manual string (7.2000 words)
- Zero base to build profit taking away CPS platform official account
- Common processing of point cloud dataset
- @Analysis of conditional on Web Application
- Mfcc: Mel frequency cepstrum coefficient calculation of perceived frequency and actual frequency conversion
- MySQL lock
- Devops integration - environment variables and building tools of Jenkins service
- Esp8266 - beginner level Chapter 1
- 山东大学软件学院项目实训-创新实训-网络安全靶场实验平台(八)
- MySQL 进阶 锁 -- MySQL锁概述、MySQL锁的分类:全局锁(数据备份)、表级锁(表共享读锁、表独占写锁、元数据锁、意向锁)、行级锁(行锁、间隙锁、临键锁)
猜你喜欢
Project training of Software College of Shandong University - Innovation Training - network security shooting range experimental platform (V)
Shanda Wangan shooting range experimental platform project - personal record (V)
Scrum Patterns之理解各种团队模式
Decompile and get the source code of any wechat applet - just read this (latest)
Shanda Wangan shooting range experimental platform project - personal record (IV)
【文本分类案例】(4) RNN、LSTM 电影评价倾向分类,附TensorFlow完整代码
[报告] Microsoft :Application of deep learning methods in speech enhancement
MFCC: Mel频率倒谱系数计算感知频率和实际频率转换
MySQL lock
山东大学软件学院项目实训-创新实训-网络安全靶场实验平台(七)
随机推荐
Possible root causes include a too low setting for -Xss and illegal cyclic inheritance dependencies
如何在BNB链上创建BEP-20通证
MySQL syntax collation (5) -- functions, stored procedures and triggers
Electron入门教程3 ——进程通信
@Analysis of conditional on Web Application
MySQL数据库 - 单表查询(一)
考试系统进入试卷优化思路
Core concepts of rest
Kubernetes入门到精通-裸机LoadBalence 80 443 端口暴露注意事项
C6748 software simulation and hardware test - with detailed FFT hardware measurement time
命令-sudo
Web Security
Go modules daily use
A simple (redisson based) distributed synchronization tool class encapsulation
Kubernetes introduction to mastery - ktconnect (full name: kubernetes toolkit connect) is a small tool based on kubernetes environment to improve the efficiency of local test joint debugging.
The textarea cursor cannot be controlled by the keyboard due to antd dropdown + modal + textarea
Executor、ExecutorService、Executors、ThreadPoolExecutor、Future、Runnable、Callable
山大网安靶场实验平台项目—个人记录(四)
【h264】libvlc 老版本的 hevc h264 解析,帧率设定
深度学习——特征工程小总结