INSERT INTO CUSTOMER_t
(CustomerID, CustomerName, CustomerStreet, CustomerCity, CustomerState, CustomerZip, CreditLimit)
VALUES(2000, 'Acme TNT', '5460 Dusty Ln.', 'Wiley', 'UT', '75688', 120);
错误:
消息 2627,级别 14,状态 1,第 3 行违反主键约束“XPKCUSTOMER_t”。无法在对象“dbo.CUSTOMER_t”中插入重复键。重复键值为 (2000)。该语句已终止。