肖走文刀夏

导航

MYSQL 查询并更新sql

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  肖走文刀夏  阅读(343)  评论(0编辑  收藏  举报