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
Code was working in Android 2.1 SDK but not on 2.2
Access 2003 -> Word 2003 - have a question on code that works to save doc as pdf file...
compareTo() - JavaScript example needed
Running RMI on Tomcat Servlet - How do I set up RMISecurityManager?
Need HP DMI Utility
How to make IN operator to accept CSV which are varchar in SQL Server 2008
Port Forwarding over Draytek VPN - help needed
stop Weblogic managed server without node manager and admin server
How to retrieve data from an XML file using ASP.NET?
select where last digits