📜  删除时设置默认值 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:18.861000             🧑  作者: Mango

代码示例1
ON DELETE SET DEFAULT

SQL Server sets the rows in the child table to their default values
if the corresponding rows in the parent table are deleted.

To execute this action, the foreign key columns must have default definitions.

"Note that: a nullable column has a default value of (NULL) 
 if no default value specified "