INSERT statement conflicted with the FOREIGN KEY constraint - SQL Server

前端 未结 14 1369
-上瘾入骨i
-上瘾入骨i 2020-11-22 11:09

I am getting the following error. Could you please help me?

Msg 547, Level 16, State 0, Line 1
The INSERT statement conflicted with the FOREIGN

14条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-22 11:58

    It means exactly what it says. You're trying to insert a value into a column that has a FK constraint on it that doesn't match any values in the lookup table.

提交回复
热议问题