We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
这是我再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]
Cannot delete or update a parent row: a foreign key constraint fails (
.
, CONSTRAINT
FOREIGN KEY (
) REFERENCES
(
)) at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:117) ~[mysql-connector-java-8.0.16.jar:8.0.16]
The text was updated successfully, but these errors were encountered:
为了方便系统扩展,建议取消所有外键,不然扩展起来太尴尬了 :)
Sorry, something went wrong.
No branches or pull requests
这是我再idea上运行web程序出现的问题,因为外键关联,所以在执行删除操作时,会报错,从而导致删除失败,报错信息如下:
Cannot delete or update a parent row: a foreign key constraint fails (
voj.
voj_contest_submissions, CONSTRAINT
voj_contest_submissions_ibfk_2FOREIGN 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]
The text was updated successfully, but these errors were encountered: