日期:2014-05-18 浏览次数:20528 次
/*try*/ declare @parm nvarchar(400) set @parm = '510-LIND RMA,511-LIND RMA' /***/ insert into LPACKING_D (PAC_NB,PAC_SQ,SO_NB,SO_SQ,SO_QT,ITEM_CD,EXCH_UM,EXCH_AM) select PAC_NB='11', row_number() over(order by CO_CD) as row_number , SO_NB,SO_SQ,SO_QT,ITEM_CD,EXCH_UM,EXCH_AM from dzicube..LSO_D where charindex(','+rtrim(so_nb)+',' , ','+@parm+',')>0