delete from IniGoodsStocks where PRec in (select rec from ptype where Unit1='基本单位')--清除商品基本单位为XX的期初库存，执行脚本前数据备份