Microsoft
Software
Hardware
Network
Question : Foreign key on same table
Hello Experts,
I have a table in my DB containing web-pages. The Primary Key is PageID. In the same table I have PageParentPageID. I can't add a FK between Pageparent and PageID. I need to ensure that the PageParentPageID exists in the table.
Sugestions please.
Best Regards
Tomas
Answer : Foreign key on same table
> I can't add a FK between Pageparent and PageID
why not? what is the error you get?
note that before you add that constraint, all values of PageParent must exist indeed in PageID ...
Random Solutions
Gmail Like File Upload
Php 500 internal server error received on website but not using xampp at home
VB.NET Setup Installing App Files Without Asking What Folder to Install
C# sharing variables or data between different classes
mailbox move in exchange 2007
Upload a file to a ftp server usgin c# and asp.net
Filtering the SSRS report based on multivalue multiple parameters passed to stored procedure
Getting One Row from a ListBox List
IM integration with Sharepoint 2010
How do I set up a link to a specific page within a wordpress template?