代码如下
DELETE a FROM t_StorageQty a LEFT JOIN t_Item b ON a.F_ItemID = b.F_ID WHERE isnull(b.F_ID,'') = ''