请解决我的问题
create trigger DeleteProduct
Before delete on Product
BEGIN
select CASE WHEN ((SELECT Inventory.InventoryID FROM Inventory WHERE Inventory.ProductID = OLD.ProductID and Inventory.Quantity=0) ISNULL)
THEN
RAISE(ABORT,'Error code 82')
Else
DELETE from inventory where inventory.ProductID=OLD.ProductID;
END;
END;
删除语句附近的错误