当前位置:网站首页>数据库表无法添加内容显示修改无法保存提示1452错误
数据库表无法添加内容显示修改无法保存提示1452错误
2022-06-09 02:03:00 【CSDN问答】
CREATE TABLE Student (
Student_id INT NOT NULL PRIMARY KEY,
campus_id INT NOT NULL,
trainning_site_id INT NOT NULL,
full_name VARCHAR(20) NOT NULL ,
age INT NOT NULL,
email VARCHAR(50) NOT NULL
);
CREATE TABLE car(
rego_number VARCHAR(20) NOT NULL PRIMARY KEY,
owner_id INT NOT NULL,
owner_name VARCHAR(20) NOT NULL,
CONSTRAINT fk1_car FOREIGN KEY (owner_id) REFERENCES student (student_id)
);
CREATE TABLE campus (
campus_id INT NOT NULL PRIMARY KEY,
campus_location VARCHAR(30) NOT NULL
);
CREATE TABLE trainning_site(
trainning_site_id INT NOT NULL PRIMARY KEY,
trainning_site_location VARCHAR(30) NOT NULL
);
ALTER TABLE Student ADD CONSTRAINT fkl_student FOREIGN KEY (campus_id) REFERENCES campus (campus_id);
ALTER TABLE Student ADD CONSTRAINT fk2_student FOREIGN KEY (trainning_site_id) REFERENCES trainning_site(trainning_site_id);
希望能帮忙解决
边栏推荐
- shell 上移目录
- Shell 磁盘空间使用率
- Shell color output
- shell 显示系统信息菜单
- Read the log + regularize and extract the desired content + write the script to csv/xlsx
- Shell 报告服务器信息
- Calculate distance according to longitude and latitude
- Assignment of C language programming practice
- QT epidemic information management system
- Shell reports server information
猜你喜欢

662. maximum width of binary tree -bfs
![[brush through sword finger] sword finger offer II 003 Number of 1 in the first n digit binary](/img/4f/695bc08f4d2d7a2a33f6b13ebb40a8.png)
[brush through sword finger] sword finger offer II 003 Number of 1 in the first n digit binary

Integrated base process test summary

Jenkins can view the forgotten credential password based on the credential ID and how to reset the admin password

GCD Locks Dead cycle SpinLock synchronized

浮點數詳解(一篇徹底學通浮點數)

Explication détaillée du nombre de points flottants (une étude approfondie du nombre de points flottants)

Suppress status error LNK1104 failed to open the file "boost_thread-vc142-mt-gd-x64-1\u 79.lib"

Security analysis and demonstration of contract private data leakage

Explain sentinel fusing strategy, degradation rules and flow control
随机推荐
C language library card management system
双检锁为什么需要使用volatile关键字
C#. Net state secret SM4 encryption and decryption CBC ECB 2 modes
Read the log + regularize and extract the desired content + write the script to csv/xlsx
马上消费:打击征信修复不遗余力,乱象根治呼唤社会合力
Swift GCD DispatchGroup Notify wait DispatchSourceTimer Monitor system file Two apps communicate
Calculate distance according to longitude and latitude
【Unity在Inspector面板修改值时销毁物体或组件】
Zhihu hot discussion: at the age of 35, do you want to escape Beijing, Shanghai and Guangzhou?
C语言校园超市管理系统
Redis集群报错cluster_state:fail,如何解决并重新恢复集群(IP问题/ slot未完全分配问题)
C语言借书证管理系统
C语言成绩记录簿
Comment le modèle de diffusion a - t - il commencé à surpasser le Gan dans le domaine de la génération d'images?
C language student native place information record book
shell CPU 使用率
[1037. effective boomerang]
C语言仓库货物管理系统
Several common sampling methods and principles
C语言疫苗预约管理系统