当我使用更新触发器直接在表中修改数据时,将出现错误“ [07000] executeUpdate方法不得返回结果集。”,但是运行{{1}时则没有此错误。 } 在查询控制台中,并且触发器运行良好。 The [07000]error 该表的DDL是
UPDATE Lab5.SaleOrderDetail SET Quantity = 3 WHERE OrderID = 7 AND ProductID = 74;
触发器是(我尝试打开椰子,但问题仍然存在)
CREATE TABLE Lab5.SaleOrderDetail
(
OrderID int NOT NULL
CONSTRAINT SaleOrderDetail_SaleOrder_OrderID_fk
REFERENCES Lab5.SaleOrder,ProductID int NOT NULL,Quantity int,UnitPrice int,PRIMARY KEY NONCLUSTERED (OrderID,ProductID)
)
GO
The tables in the schema 顺便说一下,为什么触发器未在左侧列表中列出