我的查询如下:
insert into Orders
values
('20012', /*order num, pk*/
'6-10-2012', /*date, i wrote it in a different format, is that okay ?*/
'1000000012'/*customer id, fk*/
)
错误:
The INSERT statement conflicted with the FOREIGN KEY constraint
"FK_Orders_Customers".
The conflict occurred in database "MyDB", table "dbo.Customers", column 'cust_id'.
The statement has been terminated.
为什么我会收到此错误?我怎样才能在这个表中插入一些虚拟值?