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
jQuery Autocomplete with PHP / MySQL [PART 1]
If Statement on Control Source
How to Use Abandoned Local Profile From Different Domain
How to Improve search functionality in ASP.NET 1.1?
Cisco Switch not configured with TACACS asks for username?
Find button on form
Can't Mount or Delete Public Folders Exchange 2010
Error when running adprep32/forest prep
SSL Certificates for Exchange 2010
Designing a Graphic Environment