C
caochen
Unregistered / Unconfirmed
GUEST, unregistred user!
我在主表上写了一个触发器,比如
CREATE TRIGGER [OnStock_Bill_Delete] ON dbo.stock_bill_m
FOR DELETE
AS
Delete from stock_bill_d where stock_id in (select stock_id from deleted)
然后删除主表一条记录时,出错,信息是:
“键列信息不足或不正确,更新影响到过多的行”,有谁知道是什么原因?
CREATE TRIGGER [OnStock_Bill_Delete] ON dbo.stock_bill_m
FOR DELETE
AS
Delete from stock_bill_d where stock_id in (select stock_id from deleted)
然后删除主表一条记录时,出错,信息是:
“键列信息不足或不正确,更新影响到过多的行”,有谁知道是什么原因?