Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

新增竞赛相关的数据表中,外键关联没有添加同步更新和删除 #82

Open
Pipepw opened this issue Aug 4, 2020 · 1 comment

Comments

@Pipepw
Copy link
Contributor

Pipepw commented Aug 4, 2020

这是我再idea上运行web程序出现的问题,因为外键关联,所以在执行删除操作时,会报错,从而导致删除失败,报错信息如下:
Cannot delete or update a parent row: a foreign key constraint fails (voj.voj_contest_submissions, CONSTRAINT voj_contest_submissions_ibfk_2 FOREIGN KEY (submission_id) REFERENCES voj_submissions (submission_id)) at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:117) ~[mysql-connector-java-8.0.16.jar:8.0.16]

image-20200804163528404

@node
Copy link

node commented Jul 27, 2021

为了方便系统扩展,建议取消所有外键,不然扩展起来太尴尬了 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants