Click here to Skip to main content
15,889,808 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
hello,
i wanted to know how to write the insert query when we have created the foreign key in the database
Posted
Updated 5-Mar-15 18:48pm
v2

1 solution

The INSERT query should have a valid value for the Foreign Key column of that Table, where you are inserting a row.

Otherwise it will give you foreign key constraint conflict error.
 
Share this answer
 

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