INSERT语句与FOREIGN

INSERT语句与FOREIGN

本文介绍了INSERT语句与FOREIGN KEY约束冲突的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的先生,



我在数据库中插入数据时遇到了一些问题。错误描述如下: -



  INSERT 语句冲突   FOREIGN   KEY  约束   FK_Student_Resource。发生冲突  数据库   SusanneDB table    dbo.Resource '  RESOURCEID'
声明已被终止。







请向我推荐或关于我的错误的指导。



感谢高级...

解决方案


Dear sir,

I have some problem when inserted data in the database.The error should be described as follows :-

The INSERT statement conflicted with the FOREIGN KEY constraint "FK_Student_Resource". The conflict occurred in database "SusanneDB", table "dbo.Resource", column 'ResourceId'.
The statement has been terminated.




please suggest to me or guidelines about my error.

thanks in advanced...

解决方案



这篇关于INSERT语句与FOREIGN KEY约束冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-31 02:41