问题描述
sqlException: The INSERT statement conflicted with the FOREIGN KEY constraint "FK_CartProduct_Carts_ProductId". The conflict occurred in database "ManagerZ",table "dbo.Carts",column 'Id'.
The statement has been terminated
然后出现这个错误 我不知道为什么会出现这些结果。 我应该怎么做才能解决这个问题?
int value = 0;
if (!et.equals(temp)) {
value = Integer.parseInt(temp);
}
if (value != 0 && value < 10 && value > 1 && (value -(int)value!=0)) {
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)