BOM你用父阶料号直接做主键?我真的很佩服你了。

解决方案 »

  1.   

    楼上...没有啊..我用的是Part  也就是零件...
      

  2.   

    你复制的意思是什么,
    BOM 复制
    只有Part不一致,其它的都一样么?
    -->生成测试数据
     
    declare @BOM table([Part] nvarchar(3),[ParPart] nvarchar(3),[Qty] int,[Lev] int)
    Insert @BOM
    select N'G02',N'G01',2,1 union all
    select N'G03',N'G01',1,1
    Select 'G04' as [Part],[ParPart],[Qty],[Lev] from @BOM where [Part] ='G02'
      

  3.   

    回楼上:说是把整个结构复制到另一个BOM..