QuesHub > can > key > foreign keys > ASK DETAIL

Can a foreign key be null?

Benjamin Evans | 2023-05-05 16:07:48 | page views:1285
I'll answer
Earn 20 gold coins for an accepted answer.20 Earn 20 gold coins for an accepted answer.
40more

Lucas Brown

Works at Clean Energy Partners, Lives in Copenhagen, Denmark.
Any number of rows in the child table can reference the same parent key value, so this model establishes a one-to-many relationship between the parent and foreign keys. However, each row in the child table must have a reference to a parent key value; the absence of a value (a null) in the foreign key is not allowed.
2023-05-06 16:07:48

Alexander Wilson

QuesHub.com delivers expert answers and knowledge to you.
Any number of rows in the child table can reference the same parent key value, so this model establishes a one-to-many relationship between the parent and foreign keys. However, each row in the child table must have a reference to a parent key value; the absence of a value (a null) in the foreign key is not allowed.
ask:3,asku:1,askr:137,askz:21,askd:152,RedisW:0askR:3,askD:0 mz:hit,askU:0,askT:0askA:4