imp系统运维用到的sql文件版本仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

处理因为重新导入没有sourceid问题的SQL.txt 568B

123456789
  1. select a.sourceid,b.sourceid,--into v_count13
  2. 'update salesDtl set sourceid = '||b."sourceid" || ' where rrid = ' ||b."rrid" ||' and line = '||b."line" ||' and del_flag = 0;'
  3. from salesContract a
  4. left join salesDtl b on a.id=b.rrid
  5. where ifnull(a.del_flag,0)<>1 --and ifnull(b.del_flag,0)<>1
  6. and (ifnull(a.sourceid,'')<>'' and ifnull(b.sourceid,'')='')
  7. and a.id=2033710844872888320
  8. 解决销售合同导出后又重新导入后报“当前合同产品明细需要调取采购合同产品明细生成,与主信息一致!”信息问题的sql