gpt4 book ai didi

MySQL RESTRICT 和无操作

转载 作者:IT老高 更新时间:2023-10-28 12:55:59 26 4
gpt4 key购买 nike

RESTRICTNO ACTION 在 MySQL FK 中有什么区别?从文档来看,它们似乎完全相同。是这样吗?如果有,为什么两者都有?

最佳答案

来自 MySQL 文档:https://dev.mysql.com/doc/refman/8.0/en/create-table-foreign-keys.html

Some database systems have deferred checks, and NO ACTION is a deferred check. In MySQL, foreign key constraints are checked immediately, so NO ACTION is the same as RESTRICT.

关于MySQL RESTRICT 和无操作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5809954/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com