为啥会删除所有数据 没有根据下面条件筛选
毕业设计
1
DELETE .ebaySellingListSKU
OUTPUT DELETED.*
FROM( SELECT k.* FROM .ebaySellingListSKU K
JOIN .ebaySellingListSKUDel S ON S.ItemID=K.ItemID) A
LEFT JOIN .ebaySellingListSKUDel D ON A.ItemID=D.ItemID AND A.SKU=D.SKU
WHERE D.SKU IS NULL
根据筛选是只有3条数据的 删除了全部数据
发表回复