多表联合修改

需要根据另一个表的关联数据修改当前表

update a set a.id=123 where exists (select 1 from b where a.id=b.id and b.status=1)

posted @ 2018-11-12 12:53  莫名______Q  阅读(195)  评论(0)    收藏  举报