合同剔除后.sql 469 B

12345678910111213141516171819202122232425262728293031
  1. --¸üÐÂÌÞ³ý±êʶ
  2. update sqmdb_cost.hetong_new set is_tc='ÊÇ' from sqmdb_cost.hetong_white
  3. where sqmdb_cost.hetong_new.sid=sqmdb_cost.hetong_white.hetong_sid
  4. --update sqmdb_cost.hetong_new set is_tc='·ñ'
  5. --update sqmdb_cost.station_hetong set idx_date='20220805'
  6. select
  7. sid,
  8. sname,
  9. bdate,
  10. edate,
  11. cost,
  12. cname,
  13. dname,
  14. cfname,
  15. cbzx,
  16. ename,
  17. signdate,
  18. status,
  19. stype,
  20. taker_code,
  21. taker_name,
  22. taker_mobile,
  23. nmonth,
  24. yuezujin
  25. from sqmdb_cost.hetong_new hn
  26. where is_tc='·ñ'