-
update settl_table a set a.supplier_name =(select name from b_info b where a.s_id=b.id) where a.sup_name ='';
-
UPDATE workload a INNER JOIN mechanical_record s ON s.id=a.mechanical_record_id SET a.supplier_id=s.supplier_id,a.supplier_name=s.supplier_name;
mysql 联表批量update两种写法
最新推荐文章于 2024-09-24 16:04:19 发布