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
execute onLoad only once in an ASP page
How do I make Firefox prompt me for an application to open XML files?
MailChimp WordPress Plugin Embedded styles display: none; hiding form, Part 2
Sending a web API command from Asterisk
How to export images from Access to Excel
Cisco CME - One DID to display its own number in caller ID
100% CPU usage in vCenter but not in taskmanager on the Windows NT 4.0 VM that has been converted
JavaScript Get Variable Field Value
I need to accumulate the values in query
Problems installing the AjaxControlTooKit.dll