update table1 a
inner join (select * from table2 where id=1) b
on a.id=b.id
set a.name='1'
posted on 2022-03-30 18:25 肖走文刀夏 阅读(356) 评论(0) 收藏 举报
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3