update info_user i set (i.name) = (select d.name from data_user_info d where d.id = i.id)
where i.id = (select d.id from data_user_info d where d.id = i.id);
这种写法肯定行,可是set后面接了一大串内容,看起来很乱,有没有简单的写法?
这个和我的有什么区别。。。
追答其实一样,不过我这段时间 习惯 了exists 的写法。
追问呵呵。。。其实我也用的exists。。。
追答原先不太会用 exists ,习惯用 in ,也不习惯用你的 = 。
追问上面那个兄弟太敬业了。不给他最佳答案我都过意不去了。。。
追答想敬业的人致敬!!!