update op_system.ops_system_user a,msip_bhu_core.t_vas_users b 
set a.bid=b.id
where a.username=b.mobileno and a.bid is null;

update ops_device_flow a,ops_device_flow b 
set a.next_uid=b.to_uid,a.status='0' 
where a.device_sn=b.device_sn and a.to_uid=b.from_uid and b.to_uid<>0 and a.next_uid is null;

update ops_system_user a 
set device_count=(select count(*) from ops_device_flow where to_uid=a.id);

 

相关文章:

  • 2021-07-22
  • 2022-12-23
  • 2021-11-06
  • 2021-12-28
  • 2021-07-03
  • 2021-09-05
  • 2021-11-16
  • 2022-12-23
猜你喜欢
  • 2021-12-06
  • 2021-10-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-03
相关资源
相似解决方案