📜  postgresql 你可以有空外键 - SQL 代码示例

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

代码示例1
A foreign key containing null values cannot match the values of a parent 
key, since a parent key by definition can have no null values. However, a
null foreign key value is always valid, regardless of the value of any of
its non-null parts.