mysql 根据select内容批量更新数据

例子如下:

update t_yatai_deptimport ty1 inner join t_yatai_deptimport ty2 
on ty1.nodeno_owner=ty2.sinopec_nodeno set ty1.bono=ty2.bono
where IFNULL(ty1.bono,'')='';

猜你喜欢

转载自blog.csdn.net/jzd1997/article/details/79666513