cf.sql 290 B

1234
  1. update oa_budget_making a
  2. left join oa_budget_template_detail b on b.template_id = a.template_id and b.budget_type = a.budget_type and b.budget_child_type = a.budget_child_type
  3. set a.upper_limit = b.upper_limit,a.upper_limit_value = a.upper_limit_value
  4. where ifnull(a.template_id,'') != '';