Click here to Skip to main content
15,889,266 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have three tables in data base.parent table have to foreign key which are primary keys for the other tables.i want to update the tables and i want to change the foreign key .but i am getting error.how can i update foreign key help me.
Posted
Comments
Sandeep Mewara 1-Sep-12 6:49am    
What/How were you trying to update? What error were you getting?

You can change the relation FK from one FK to other but cannot modify the FK number.
Christian Amado 2-Sep-12 11:31am    
What's the error here?
Roliking 2-Sep-12 12:49pm    
you need to make sure the fk you are trying to update is present as a pk in the table which the fk is mapped to.

It would be helpful if you provide some code and the error that you are getting.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900