【问】无业务发生商品资料批量删除语句 | ||
【适用版本】商锐9 | 【模块】档案管理 | 【点击数】75 |
【知识编号】P2015122500006 | ||
【问题描述】无业务发生商品资料批量删除语句 |
godelete from t_bd_item_info
where (t_bd_item_info.item_no not in
(select distinct item_no from t_im_flow where oper_date > ‘2005/5/20 00:00:00’ and oper_date < ‘2015/8/29 23:59:59’)
and t_bd_item_info.combine_sta <> ‘1’) and t_bd_item_info.status<>’6′ and isnull(t_bd_item_info.branch_sale,’1′) = ‘1’go