旗舰版 自定义客户料号名称和型号
340次浏览
编辑于2019年06月11日 17:45:03
套用物料对应表 ,在名称处填写名称和型号,以“/”分隔,建立触发分割名称
update SeOrderEntry
set FEntrySelfS0174 =SUBSTRING( FMapName , 0 ,len(FMapName)-CHARINDEX('/',reverse(FMapName))+1),
FEntrySelfS0175=RIGHT( FMapName , case when CHARINDEX('/',reverse(FMapName))=0 then 0 else CHARINDEX('/',reverse(FMapName))-1 end)
where FInterID =@FInterID
update SeOrderEntry
set FEntrySelfS0174 =SUBSTRING( FMapName , 0 ,len(FMapName)-CHARINDEX('/',reverse(FMapName))+1),
FEntrySelfS0175=RIGHT( FMapName , case when CHARINDEX('/',reverse(FMapName))=0 then 0 else CHARINDEX('/',reverse(FMapName))-1 end)
where FInterID =@FInterID
推荐阅读