select Version_No, CP_CODE, CP_NAME, CP_TYPE, CP_Machine_NO, CP_DW, Wl_Code, Itemname, Itemstandard, Stock_dw, Use_Num, lostpre, zp_guige, zp_use_num, m_qty, memolist, nowversion, begindate, endtime, wldm, customno, sendflag, YDWDH, ZLDWDH, yl_weight, zongzhong_Weight, pno, Addtime, Fu_Width, YFL_ItemClass, Mould_No, stand_nowversion, Comfirm_Flag, Comfirm_man, Comfirm_date, write_man, GongCha, Factory_Mould_no, Main_Material, Limit_Flag, gongcha_more, gongcha_small, changtime, CP_NUM, worklineclass from bom insert into bom Version_No, CP_CODE, CP_NAME, CP_TYPE, CP_Machine_NO, CP_DW, Wl_Code, Itemname, Itemstandard, Stock_dw, Use_Num, lostpre, zp_guige, zp_use_num, m_qty, memolist, nowversion, begindate, endtime, wldm, customno, sendflag, YDWDH, ZLDWDH, yl_weight, zongzhong_Weight, pno, Addtime, Fu_Width, YFL_ItemClass, Mould_No, stand_nowversion, Comfirm_Flag, Comfirm_man, Comfirm_date, write_man, GongCha, Factory_Mould_no, Main_Material, Limit_Flag, gongcha_more, gongcha_small, changtime, CP_NUM, worklineclass, #{versionNo}, #{cpCode}, #{cpName}, #{cpType}, #{cpMachineNo}, #{cpDw}, #{wlCode}, #{itemname}, #{itemstandard}, #{stockDw}, #{useNum}, #{lostpre}, #{zpGuige}, #{zpUseNum}, #{mQty}, #{memolist}, #{nowversion}, #{begindate}, #{endtime}, #{wldm}, #{customno}, #{sendflag}, #{YDWDH}, #{ZLDWDH}, #{ylWeight}, #{zongzhongWeight}, #{pno}, #{Addtime}, #{fuWidth}, #{yflItemclass}, #{mouldNo}, #{standNowversion}, #{comfirmFlag}, #{comfirmMan}, #{comfirmDate}, #{writeMan}, #{GongCha}, #{factoryMouldNo}, #{mainMaterial}, #{limitFlag}, #{gongchaMore}, #{gongchaSmall}, #{changtime}, #{cpNum}, #{worklineclass}, update bom CP_CODE = #{cpCode}, CP_NAME = #{cpName}, CP_TYPE = #{cpType}, CP_Machine_NO = #{cpMachineNo}, CP_DW = #{cpDw}, Wl_Code = #{wlCode}, Itemname = #{Itemname}, Itemstandard = #{Itemstandard}, Stock_dw = #{stockDw}, Use_Num = #{useNum}, lostpre = #{lostpre}, zp_guige = #{zpGuige}, zp_use_num = #{zpUseNum}, m_qty = #{mQty}, memolist = #{memolist}, nowversion = #{nowversion}, begindate = #{begindate}, endtime = #{endtime}, wldm = #{wldm}, customno = #{customno}, sendflag = #{sendflag}, YDWDH = #{YDWDH}, ZLDWDH = #{ZLDWDH}, yl_weight = #{ylWeight}, zongzhong_Weight = #{zongzhongWeight}, pno = #{pno}, Addtime = #{Addtime}, Fu_Width = #{fuWidth}, YFL_ItemClass = #{yflItemclass}, Mould_No = #{mouldNo}, stand_nowversion = #{standNowversion}, Comfirm_Flag = #{comfirmFlag}, Comfirm_man = #{comfirmMan}, Comfirm_date = #{comfirmDate}, write_man = #{writeMan}, GongCha = #{GongCha}, Factory_Mould_no = #{factoryMouldNo}, Main_Material = #{mainMaterial}, Limit_Flag = #{limitFlag}, gongcha_more = #{gongchaMore}, gongcha_small = #{gongchaSmall}, changtime = #{changtime}, CP_NUM = #{cpNum}, worklineclass = #{worklineclass}, where Version_No = #{versionNo} delete from bom where Version_No = #{versionNo} delete from bom where Version_No in #{versionNo} delete from bom and Version_No = #{versionNo} and CP_CODE = #{cpCode} and Wl_Code = #{wlCode}