1 1 vote Explain recursive foreign key with suitable example.. Programming in C databases referential-integrity + – rishu_darkshadow 5.8k views answer comment Share Follow Print 0 reply Please log in or register to add a comment.
1 1 vote Foreign Key The key of a table which acts as a primary key of some another table. The recursive foreign key is the key which refers back to the same table i.e. the foreign key is in the same table. So Parent and child table is the same. For example : Let's have a table Employee having to fields empID and managedbyempID, this both fields contain the employee id's(Both are employees) from the same table. One act as a primary key and another one will act as a recursive foreign key. Diksha Aswal answered Sep 29, 2017 Diksha Aswal comment Share Follow See 1 comment 1 1 comment reply rishu_darkshadow commented Sep 29, 2017 reply Follow flag Ok diksha thanks a lot, but can u tell me why there is a need of recursive foreign key in your example.. means in which case we need recursive foreign key.. ? 0 0 replyShare Please log in or register to add a comment.