imp系统运维用到的sql文件版本仓库
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

处理因为重新导入没有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