标签:get set ops bin ice from table specified ISE
UPDATE Bins b SET b.ShopSn =’111201611111168706’ WHERE b.Id IN (SELECT b.Id FROM Bins b JOIN BinInventory bi ON bi.BinId = b.Id WHERE bi.Quantity >0 AND b.IsEnable=1 AND bi.IsEnable =1);
UPDATE Bins b SET b.ShopSn =’111201611111168706’ WHERE b.Id IN (select * from (SELECT b.Id FROM Bins b JOIN BinInventory bi ON bi.BinId = b.Id WHERE bi.Quantity >0 AND b.IsEnable=1 AND bi.IsEnable =1) as Y);
测试delete也存在这种情况
Table is specified twice, both as a target for 'UPDATE' and as a separate source
标签:get set ops bin ice from table specified ISE
原文地址:https://www.cnblogs.com/hankyoon/p/11012606.html