update railway r
join railway_section rs on r.id = rs.railway_id
join work_station ws on r.id = ws.railway_id
join patroller p on r.id = p.railway_id
set rs.railway_name = #{name},
ws.railway_name = #{name},
p.railway_name = #{name}
where r.id = #{id}
标签:join,name,rs,更新,ws,联合,mysql,railway,id
From: https://www.cnblogs.com/sung1024/p/17657073.html