mysq 连表更新

update  table1 a   left join table2 b on a.id = b.user_id left join  table3 c on a.id = c.user_id
set a.phone_tel = null,
b.id_code = null,
c.identity_no = null,
c.identity_type = null
where a.phone_tel = '16718787005';
posted @ 2019-10-09 11:49  Struts-pring  阅读(159)  评论(0编辑  收藏  举报