|
|
От: | varenikAA | |
| Дата: | 22.04.20 09:13 | ||
| Оценка: | |||
Create Table Client (id int primary key, name nvarchar(max))
Create Table Contact(id int primary key, name nvarchar(max), ClientId int, constraint FK_Contact_Client foreign key (ClientId) references Client(Id))
Alter Table Client add ContactId int, constraint FK_Client_Contact foreign key (ContactId) references Contact(Id)The INSERT statement conflicted with the FOREIGN KEY constraint "FK_Client_Contact". The conflict occurred in table "dbo.Contact", column 'Id'.